/*
 * hotelForm.java
 *
 * Created on March 9, 2006, 3:22 PM
 */

package phs_project;

import com.toedter.calendar.JCalendar; 
import com.toedter.calendar.JDateChooser;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.image.ImageObserver;
import java.awt.image.ImageProducer;
import java.beans.PropertyChangeEvent;
import java.lang.Integer;
import java.rmi.server.ObjID;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.Statement;
import java.sql.*;
import java.text.DateFormat;
import java.text.Format;
import java.text.ParseException;
import java.util.Calendar;
import java.util.GregorianCalendar;
import javax.swing.JDialog;
import com.toedter.calendar.JCalendar.*;
import com.toedter.calendar.JDayChooser;
import javax.swing.JSpinner;
import javax.swing.SpinnerDateModel;
import javax.swing.*;
import javax.swing.JFormattedTextField;
import javax.swing.text.DefaultFormatterFactory;
import javax.swing.text.DateFormatter;
import java.text.SimpleDateFormat;
import java.util.*;
import java.util.Date;

/**
 *
 * @author  Administrator
 */
public class hotelForm extends javax.swing.JFrame {    
    public static Vector vt;
    public int OrderID;
    public String beginDate = "";
    public String endDate = "";    
    /** Creates new form hotelForm */
    public hotelForm() {
        initComponents();        
        setLich();
        RoomTypeCombobox();            
        ViewRoomStatusToday(); 
        viewreport();
        //Huynh nt onload contructer
        Infomation();
        //End Huynh nt onload contructer
       //Tuanp onload contructer
        UnFillAllFeild();
        NumbofRoomShow();
        CountRoomShow();
        showordestype();
        showordes(Loai);
        showCustomers();
        CountCustomerType();
        jDateChooserSearch.setLocale(new Locale("vi"));
        new publicClass().addItemTooCombobox(cbType,"select name from customerstype","");
        //End Tuanp onload contructer
    
    }
    
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
    private void initComponents() {
        jDialog1 = new javax.swing.JDialog();
        jDialog2 = new javax.swing.JDialog();
        jButton2 = new javax.swing.JButton();
        Pmenu = new javax.swing.JPopupMenu();
        mnitInfo = new javax.swing.JMenuItem();
        mnitCheckOut = new javax.swing.JMenuItem();
        mnitChangeRoom = new javax.swing.JMenuItem();
        mnitAddServices = new javax.swing.JMenuItem();
        mnitAddCustomer = new javax.swing.JMenuItem();
        buttonGroup1 = new javax.swing.ButtonGroup();
        PmenuForOrders = new javax.swing.JPopupMenu();
        mnitAddCus = new javax.swing.JMenuItem();
        mnitAddSer = new javax.swing.JMenuItem();
        mnitChangeOrd = new javax.swing.JMenuItem();
        mnitDisplayOrd = new javax.swing.JMenuItem();
        mnitPayoutOrd = new javax.swing.JMenuItem();
        mnitPrint = new javax.swing.JMenuItem();
        searchConDiG = new javax.swing.ButtonGroup();
        jSplitPane1 = new javax.swing.JSplitPane();
        jSplitPane2 = new javax.swing.JSplitPane();
        pn1 = new javax.swing.JPanel();
        txtDateField = new javax.swing.JTextField();
        jcalendar1 = new com.toedter.calendar.JCalendar();
        jPanel2 = new javax.swing.JPanel();
        jPanel6 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        lblUser = new javax.swing.JLabel();
        lblRight = new javax.swing.JLabel();
        jSeparator4 = new javax.swing.JSeparator();
        lblImage = new javax.swing.JLabel();
        jPanel1 = new javax.swing.JPanel();
        jTabbeQuanlykhachhang = new javax.swing.JTabbedPane();
        panelRoomManage = new javax.swing.JPanel();
        jscrool = new javax.swing.JScrollPane();
        tableViewRoomStaus = new javax.swing.JTable();
        jPanel3 = new javax.swing.JPanel();
        cbbRoomStaus = new javax.swing.JComboBox();
        PanelDatPhong = new javax.swing.JPanel();
        JSconpane = new javax.swing.JScrollPane();
        table = new javax.swing.JTable();
        panelDateChoose22 = new javax.swing.JPanel();
        jLabel7 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        dateChooseBegin = new com.toedter.calendar.JDateChooser();
        dateChooseEnd = new com.toedter.calendar.JDateChooser();
        cbbRoomType = new javax.swing.JComboBox();
        btntimphong = new javax.swing.JButton();
        jLabel33 = new javax.swing.JLabel();
        btnCreaOrder = new javax.swing.JButton();
        lbl1 = new javax.swing.JLabel();
        lbl2 = new javax.swing.JLabel();
        lbl3 = new javax.swing.JLabel();
        lbl4 = new javax.swing.JLabel();
        n1 = new javax.swing.JLabel();
        n2 = new javax.swing.JLabel();
        n3 = new javax.swing.JLabel();
        n4 = new javax.swing.JLabel();
        jPanelQuanlydonhang = new javax.swing.JPanel();
        jPanel8 = new javax.swing.JPanel();
        combOrdertype = new javax.swing.JComboBox();
        jLabel6 = new javax.swing.JLabel();
        jButton20 = new javax.swing.JButton();
        jLabel34 = new javax.swing.JLabel();
        txtRegName = new javax.swing.JTextField();
        jButton28 = new javax.swing.JButton();
        jPanel9 = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        tableOrders = new javax.swing.JTable();
        jPanel5 = new javax.swing.JPanel();
        jButton22 = new javax.swing.JButton();
        jButton18 = new javax.swing.JButton();
        jButton25 = new javax.swing.JButton();
        jButton21 = new javax.swing.JButton();
        jButton17 = new javax.swing.JButton();
        jButton16 = new javax.swing.JButton();
        odtype1 = new javax.swing.JLabel();
        odtype2 = new javax.swing.JLabel();
        odtype3 = new javax.swing.JLabel();
        odtype4 = new javax.swing.JLabel();
        odn1 = new javax.swing.JLabel();
        odn2 = new javax.swing.JLabel();
        odn3 = new javax.swing.JLabel();
        odn4 = new javax.swing.JLabel();
        jPanel7 = new javax.swing.JPanel();
        jPanel10 = new javax.swing.JPanel();
        jScrollPane2 = new javax.swing.JScrollPane();
        tblCustomers = new javax.swing.JTable();
        jLabel9 = new javax.swing.JLabel();
        txtFirstname = new javax.swing.JTextField();
        jLabel10 = new javax.swing.JLabel();
        jLabel11 = new javax.swing.JLabel();
        jLabel12 = new javax.swing.JLabel();
        jLabel13 = new javax.swing.JLabel();
        txtIdcardNumb = new javax.swing.JTextField();
        txtVisaCardNum = new javax.swing.JTextField();
        cbType = new javax.swing.JComboBox();
        txtAge = new javax.swing.JTextField();
        sexMale = new javax.swing.JRadioButton();
        sexFemale = new javax.swing.JRadioButton();
        jLabel14 = new javax.swing.JLabel();
        jLabel15 = new javax.swing.JLabel();
        jLabel16 = new javax.swing.JLabel();
        jLabel17 = new javax.swing.JLabel();
        jLabel18 = new javax.swing.JLabel();
        jLabel19 = new javax.swing.JLabel();
        txtAddress = new javax.swing.JTextField();
        txtNote = new javax.swing.JTextField();
        txtPhone = new javax.swing.JTextField();
        txtEmail = new javax.swing.JTextField();
        txtCountry = new javax.swing.JTextField();
        txtLastname = new javax.swing.JTextField();
        jPanel21 = new javax.swing.JPanel();
        jButton27 = new javax.swing.JButton();
        jButton24 = new javax.swing.JButton();
        jButton23 = new javax.swing.JButton();
        jButton19 = new javax.swing.JButton();
        jButton26 = new javax.swing.JButton();
        typeOfCus = new javax.swing.JComboBox();
        cusReg = new javax.swing.JLabel();
        cusIn = new javax.swing.JLabel();
        cn1 = new javax.swing.JLabel();
        cn2 = new javax.swing.JLabel();
        panelSearch = new javax.swing.JPanel();
        jPanel4 = new javax.swing.JPanel();
        jPanel18 = new javax.swing.JPanel();
        jRadioButtonDay = new javax.swing.JRadioButton();
        jRadioButtonCusName = new javax.swing.JRadioButton();
        jRadioButtonRoomName = new javax.swing.JRadioButton();
        jPanel19 = new javax.swing.JPanel();
        txtInput = new javax.swing.JTextField();
        jButton15 = new javax.swing.JButton();
        jPanel20 = new javax.swing.JPanel();
        jDateChooserSearch = new com.toedter.calendar.JDateChooser();
        jPanel17 = new javax.swing.JPanel();
        jScrollPane3 = new javax.swing.JScrollPane();
        tblSearchResult = new javax.swing.JTable();
        jPanel11 = new javax.swing.JPanel();
        jPanel12 = new javax.swing.JPanel();
        jLabel20 = new javax.swing.JLabel();
        jLabel21 = new javax.swing.JLabel();
        jLabel22 = new javax.swing.JLabel();
        jLabel23 = new javax.swing.JLabel();
        txtOdDtt = new javax.swing.JTextField();
        txtOdCtt = new javax.swing.JTextField();
        txtOdTt1p = new javax.swing.JTextField();
        txtTOD = new javax.swing.JTextField();
        jPanel13 = new javax.swing.JPanel();
        jLabel24 = new javax.swing.JLabel();
        jLabel25 = new javax.swing.JLabel();
        jLabel26 = new javax.swing.JLabel();
        txtKDH = new javax.swing.JTextField();
        txtKDO = new javax.swing.JTextField();
        txtTK = new javax.swing.JTextField();
        jPanel14 = new javax.swing.JPanel();
        jLabel27 = new javax.swing.JLabel();
        jLabel28 = new javax.swing.JLabel();
        jLabel31 = new javax.swing.JLabel();
        txtLDv = new javax.swing.JTextField();
        txtDvHd = new javax.swing.JTextField();
        txtTDV = new javax.swing.JTextField();
        jPanel15 = new javax.swing.JPanel();
        jLabel29 = new javax.swing.JLabel();
        jLabel30 = new javax.swing.JLabel();
        jLabel32 = new javax.swing.JLabel();
        txtLP = new javax.swing.JTextField();
        txtPHD = new javax.swing.JTextField();
        txtTP = new javax.swing.JTextField();
        jLabel35 = new javax.swing.JLabel();
        txtFreeRoom = new javax.swing.JTextField();
        jLabel36 = new javax.swing.JLabel();
        txtRegRoom = new javax.swing.JTextField();
        jPanel16 = new javax.swing.JPanel();
        btnXem = new javax.swing.JButton();
        jProgressBar1 = new javax.swing.JProgressBar();
        jToolBar1 = new javax.swing.JToolBar();
        jButton1 = new javax.swing.JButton();
        jButton3 = new javax.swing.JButton();
        jButton4 = new javax.swing.JButton();
        jButton5 = new javax.swing.JButton();
        jButton9 = new javax.swing.JButton();
        jButton6 = new javax.swing.JButton();
        jSeparator3 = new javax.swing.JSeparator();
        jToolBar2 = new javax.swing.JToolBar();
        jButton13 = new javax.swing.JButton();
        jButton12 = new javax.swing.JButton();
        jButton14 = new javax.swing.JButton();
        Menu = new javax.swing.JMenuBar();
        mnFile = new javax.swing.JMenu();
        mnitBackupDatabase = new javax.swing.JMenuItem();
        mnitRestoreDatabase = new javax.swing.JMenuItem();
        speratoFile = new javax.swing.JSeparator();
        mnitLogOut = new javax.swing.JMenuItem();
        mnitExit = new javax.swing.JMenuItem();
        mnRoom = new javax.swing.JMenu();
        mnitRoomTypes = new javax.swing.JMenuItem();
        mnitRoomOperation = new javax.swing.JMenuItem();
        mnServices = new javax.swing.JMenu();
        mnitServiceTypes = new javax.swing.JMenuItem();
        mnitServiceOperation = new javax.swing.JMenuItem();
        mnReservation = new javax.swing.JMenu();
        mnitBlockDate = new javax.swing.JMenuItem();
        mnitNewReservation = new javax.swing.JMenuItem();
        mnitEditDeleteReservation = new javax.swing.JMenuItem();
        jSeparator2 = new javax.swing.JSeparator();
        mnitStayInfomation = new javax.swing.JMenuItem();
        mnGroup = new javax.swing.JMenu();
        mnitGroupDatabase = new javax.swing.JMenuItem();
        mnitGroupOperation = new javax.swing.JMenuItem();
        jSeparator5 = new javax.swing.JSeparator();
        mnitCheckInList = new javax.swing.JMenuItem();
        mnitCheckOutList = new javax.swing.JMenuItem();
        mnitReservationList = new javax.swing.JMenuItem();
        jSeparator7 = new javax.swing.JSeparator();
        mnitUnGroup = new javax.swing.JMenuItem();
        mnitReGroup = new javax.swing.JMenuItem();
        mnReport = new javax.swing.JMenu();
        mnitReportsOrders = new javax.swing.JMenuItem();
        mnitReportsRooms = new javax.swing.JMenuItem();
        mnOption = new javax.swing.JMenu();
        mnitCreateUser = new javax.swing.JMenuItem();
        mnChangLook = new javax.swing.JMenu();
        mnitWindows = new javax.swing.JMenuItem();
        mnitDefault = new javax.swing.JMenuItem();
        mnitOffice2003 = new javax.swing.JMenuItem();
        mnitOfficeXP = new javax.swing.JMenuItem();
        mnitVisualStudio2005 = new javax.swing.JMenuItem();
        mnitUser = new javax.swing.JMenuItem();
        mnHelp = new javax.swing.JMenu();
        mnitDocument = new javax.swing.JMenuItem();
        mnitOnlineHelp = new javax.swing.JMenuItem();
        mnitSeparator1 = new javax.swing.JSeparator();
        mnitAbout = new javax.swing.JMenuItem();

        org.jdesktop.layout.GroupLayout jDialog1Layout = new org.jdesktop.layout.GroupLayout(jDialog1.getContentPane());
        jDialog1.getContentPane().setLayout(jDialog1Layout);
        jDialog1Layout.setHorizontalGroup(
            jDialog1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 400, Short.MAX_VALUE)
        );
        jDialog1Layout.setVerticalGroup(
            jDialog1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 300, Short.MAX_VALUE)
        );
        org.jdesktop.layout.GroupLayout jDialog2Layout = new org.jdesktop.layout.GroupLayout(jDialog2.getContentPane());
        jDialog2.getContentPane().setLayout(jDialog2Layout);
        jDialog2Layout.setHorizontalGroup(
            jDialog2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 400, Short.MAX_VALUE)
        );
        jDialog2Layout.setVerticalGroup(
            jDialog2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 300, Short.MAX_VALUE)
        );
        jButton2.setText("jButton2");
        mnitInfo.setText("Th\u00f4ng tin chi ti\u1ebft");
        mnitInfo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnitInfoActionPerformed(evt);
            }
        });

        Pmenu.add(mnitInfo);

        mnitCheckOut.setText("Tr\u1ea3 ph\u00f2ng");
        mnitCheckOut.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnitCheckOutActionPerformed(evt);
            }
        });

        Pmenu.add(mnitCheckOut);

        mnitChangeRoom.setText("Th\u00eam ph\u00f2ng /Chuy\u1ec3n ph\u00f2ng");
        mnitChangeRoom.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnitChangeRoomActionPerformed(evt);
            }
        });

        Pmenu.add(mnitChangeRoom);

        mnitAddServices.setText("G\u1ecdi d\u1ecbch v\u1ee5");
        mnitAddServices.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnitAddServicesActionPerformed(evt);
            }
        });

        Pmenu.add(mnitAddServices);

        mnitAddCustomer.setText("Th\u00eam kh\u00e1ch v\u00e0o ph\u00f2ng");
        mnitAddCustomer.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnitAddCustomerActionPerformed(evt);
            }
        });

        Pmenu.add(mnitAddCustomer);

        mnitAddCus.setText("X\u1ebfp kh\u00e1ch");
        mnitAddCus.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnitAddCusActionPerformed(evt);
            }
        });

        PmenuForOrders.add(mnitAddCus);

        mnitAddSer.setText("Th\u00eam d\u1ecbch v\u1ee5");
        mnitAddSer.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnitAddSerActionPerformed(evt);
            }
        });

        PmenuForOrders.add(mnitAddSer);

        mnitChangeOrd.setText("S\u1eeda \u0111\u01a1n h\u00e0ng");
        mnitChangeOrd.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnitChangeOrdActionPerformed(evt);
            }
        });

        PmenuForOrders.add(mnitChangeOrd);

        mnitDisplayOrd.setText("Xem chi ti\u1ebft");
        mnitDisplayOrd.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnitDisplayOrdActionPerformed(evt);
            }
        });

        PmenuForOrders.add(mnitDisplayOrd);

        mnitPayoutOrd.setText("Tr\u1ea3 ph\u00f2ng,thanh to\u00e1n");
        mnitPayoutOrd.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnitPayoutOrdActionPerformed(evt);
            }
        });

        PmenuForOrders.add(mnitPayoutOrd);

        mnitPrint.setText("In h\u00f3a\u0111\u01a1n");
        mnitPrint.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnitPrintActionPerformed(evt);
            }
        });

        PmenuForOrders.add(mnitPrint);

        setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
        setTitle("Professional Hotel Services");
        setAlwaysOnTop(true);
        setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
        getAccessibleContext().setAccessibleParent(this);
        jSplitPane1.setDividerLocation(180);
        jSplitPane1.setDebugGraphicsOptions(javax.swing.DebugGraphics.NONE_OPTION);
        jSplitPane2.setDividerLocation(200);
        jSplitPane2.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);

        jcalendar1.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
            public void propertyChange(java.beans.PropertyChangeEvent evt) {
                jcalendar1PropertyChange(evt);
            }
        });

        org.jdesktop.layout.GroupLayout pn1Layout = new org.jdesktop.layout.GroupLayout(pn1);
        pn1.setLayout(pn1Layout);
        pn1Layout.setHorizontalGroup(
            pn1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(pn1Layout.createSequentialGroup()
                .add(pn1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false)
                    .add(org.jdesktop.layout.GroupLayout.LEADING, txtDateField)
                    .add(org.jdesktop.layout.GroupLayout.LEADING, jcalendar1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 174, Short.MAX_VALUE))
                .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        pn1Layout.setVerticalGroup(
            pn1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(pn1Layout.createSequentialGroup()
                .add(txtDateField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jcalendar1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(26, Short.MAX_VALUE))
        );
        jSplitPane2.setTopComponent(pn1);

        jPanel6.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Th\u00f4ng tin ng\u01b0\u1eddi d\u00f9ng", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION));
        jLabel1.setIcon(new javax.swing.ImageIcon("D:\\DuLieu\\PHS\\16.03.06\\PHS_PROJECT\\Image\\admin.gif"));
        jLabel1.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);

        jLabel2.setText("H\u1ecd T\u00ean :");

        jLabel3.setText("Ch\u1ee9c v\u1ee5 :");

        lblUser.setText("User Name");

        lblRight.setText("Right");

        org.jdesktop.layout.GroupLayout jPanel6Layout = new org.jdesktop.layout.GroupLayout(jPanel6);
        jPanel6.setLayout(jPanel6Layout);
        jPanel6Layout.setHorizontalGroup(
            jPanel6Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, jLabel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 168, Short.MAX_VALUE)
            .add(jPanel6Layout.createSequentialGroup()
                .addContainerGap()
                .add(jLabel3)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(lblRight, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 95, Short.MAX_VALUE)
                .addContainerGap())
            .add(jPanel6Layout.createSequentialGroup()
                .addContainerGap()
                .add(jLabel2)
                .add(12, 12, 12)
                .add(lblUser, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 95, Short.MAX_VALUE)
                .addContainerGap())
            .add(jPanel6Layout.createSequentialGroup()
                .addContainerGap()
                .add(lblImage, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 148, Short.MAX_VALUE)
                .addContainerGap())
            .add(jPanel6Layout.createSequentialGroup()
                .addContainerGap()
                .add(jSeparator4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 145, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(13, Short.MAX_VALUE))
        );
        jPanel6Layout.setVerticalGroup(
            jPanel6Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel6Layout.createSequentialGroup()
                .add(jLabel1)
                .add(5, 5, 5)
                .add(jSeparator4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 10, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jPanel6Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel2)
                    .add(lblUser, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 17, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jPanel6Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel3)
                    .add(lblRight))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(lblImage, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 119, Short.MAX_VALUE)
                .add(40, 40, 40))
        );

        org.jdesktop.layout.GroupLayout jPanel2Layout = new org.jdesktop.layout.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel6, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel2Layout.createSequentialGroup()
                .add(jPanel6, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jSplitPane2.setRightComponent(jPanel2);

        jSplitPane1.setLeftComponent(jSplitPane2);

        jTabbeQuanlykhachhang.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jTabbeQuanlykhachhangMouseClicked(evt);
            }
        });

        panelRoomManage.setInheritsPopupMenu(true);
        tableViewRoomStaus.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {

            }
        ));
        tableViewRoomStaus.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                tableViewRoomStausMouseClicked(evt);
            }
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                tableViewRoomStausMouseReleased(evt);
            }
        });

        jscrool.setViewportView(tableViewRoomStaus);

        jPanel3.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        cbbRoomStaus.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "T\u1ea5t c\u1ea3 c\u00e1c lo\u1ea1i", "Ph\u00f2ng \u0111ang r\u1ed7i", "Ph\u00f2ng \u0111ang \u0111\u1eb7t", "Ph\u00f2ng \u0111ang b\u1eadn" }));
        cbbRoomStaus.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                cbbRoomStausItemStateChanged(evt);
            }
        });

        org.jdesktop.layout.GroupLayout jPanel3Layout = new org.jdesktop.layout.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel3Layout.createSequentialGroup()
                .add(cbbRoomStaus, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 152, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(347, Short.MAX_VALUE))
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel3Layout.createSequentialGroup()
                .addContainerGap(12, Short.MAX_VALUE)
                .add(cbbRoomStaus, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
        );

        org.jdesktop.layout.GroupLayout panelRoomManageLayout = new org.jdesktop.layout.GroupLayout(panelRoomManage);
        panelRoomManage.setLayout(panelRoomManageLayout);
        panelRoomManageLayout.setHorizontalGroup(
            panelRoomManageLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, panelRoomManageLayout.createSequentialGroup()
                .add(panelRoomManageLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                    .add(org.jdesktop.layout.GroupLayout.LEADING, jPanel3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .add(jscrool, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 503, Short.MAX_VALUE))
                .addContainerGap())
        );
        panelRoomManageLayout.setVerticalGroup(
            panelRoomManageLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(panelRoomManageLayout.createSequentialGroup()
                .add(jPanel3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jscrool, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 360, Short.MAX_VALUE)
                .addContainerGap())
        );
        jTabbeQuanlykhachhang.addTab("Qu\u1ea3n l\u00fd ph\u00f2ng", panelRoomManage);

        table.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {},
                {},
                {},
                {}
            },
            new String [] {

            }
        ));
        JSconpane.setViewportView(table);

        panelDateChoose22.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jLabel7.setText("Ng\u00e0y \u0111\u1ebfn");

        jLabel8.setText("Ng\u00e0y \u0111i");

        dateChooseBegin.setDateFormatString("MM/dd/yy HH:mm:ss");
        dateChooseBegin.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
            public void propertyChange(java.beans.PropertyChangeEvent evt) {
                dateChooseBeginPropertyChange(evt);
            }
        });

        dateChooseEnd.setDateFormatString("MM/dd/yy HH:mm:ss");
        dateChooseEnd.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
            public void propertyChange(java.beans.PropertyChangeEvent evt) {
                dateChooseEndPropertyChange(evt);
            }
        });

        cbbRoomType.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                cbbRoomTypeItemStateChanged(evt);
            }
        });

        btntimphong.setIcon(new javax.swing.ImageIcon(getClass().getResource("/phs_project/Image/Icon/eight_r1_c12.jpg")));
        btntimphong.setToolTipText("T\u00ecm ph\u00f2ng");
        btntimphong.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btntimphongActionPerformed(evt);
            }
        });

        jLabel33.setText("Lo\u1ea1i");

        btnCreaOrder.setIcon(new javax.swing.ImageIcon(getClass().getResource("/phs_project/Image/Icon/eight_r2_c1.jpg")));
        btnCreaOrder.setToolTipText("T\u1ea1o \u0111\u01a1n h\u00e0ng");
        btnCreaOrder.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnCreaOrderActionPerformed(evt);
            }
        });

        org.jdesktop.layout.GroupLayout panelDateChoose22Layout = new org.jdesktop.layout.GroupLayout(panelDateChoose22);
        panelDateChoose22.setLayout(panelDateChoose22Layout);
        panelDateChoose22Layout.setHorizontalGroup(
            panelDateChoose22Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, panelDateChoose22Layout.createSequentialGroup()
                .add(panelDateChoose22Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jLabel7)
                    .add(jLabel33))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(panelDateChoose22Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(cbbRoomType, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 124, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(dateChooseBegin, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 167, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .add(panelDateChoose22Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(panelDateChoose22Layout.createSequentialGroup()
                        .add(0, 0, 0)
                        .add(btntimphong, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 26, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .add(14, 14, 14)
                        .add(btnCreaOrder, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 30, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .add(panelDateChoose22Layout.createSequentialGroup()
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(jLabel8)
                        .add(14, 14, 14)
                        .add(dateChooseEnd, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 182, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
                .add(133, 133, 133))
        );
        panelDateChoose22Layout.setVerticalGroup(
            panelDateChoose22Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, panelDateChoose22Layout.createSequentialGroup()
                .addContainerGap()
                .add(panelDateChoose22Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                    .add(jLabel7)
                    .add(dateChooseBegin, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jLabel8)
                    .add(dateChooseEnd, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(panelDateChoose22Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(cbbRoomType, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 18, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jLabel33)
                    .add(btnCreaOrder, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 28, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(btntimphong, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 26, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .add(30, 30, 30))
        );

        lbl1.setText("Type1");

        lbl2.setText("Type2");

        lbl3.setText("Type3");

        lbl4.setText("Type4");

        n1.setText("0");

        n2.setText("0");

        n3.setText("0");

        n4.setText("0");

        org.jdesktop.layout.GroupLayout PanelDatPhongLayout = new org.jdesktop.layout.GroupLayout(PanelDatPhong);
        PanelDatPhong.setLayout(PanelDatPhongLayout);
        PanelDatPhongLayout.setHorizontalGroup(
            PanelDatPhongLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(PanelDatPhongLayout.createSequentialGroup()
                .add(lbl1)
                .add(23, 23, 23)
                .add(n1)
                .add(116, 116, 116)
                .add(lbl3)
                .add(28, 28, 28)
                .add(n3)
                .addContainerGap(274, Short.MAX_VALUE))
            .add(JSconpane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 513, Short.MAX_VALUE)
            .add(panelDateChoose22, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 513, Short.MAX_VALUE)
            .add(PanelDatPhongLayout.createSequentialGroup()
                .add(lbl2)
                .add(23, 23, 23)
                .add(n2)
                .add(116, 116, 116)
                .add(lbl4)
                .add(28, 28, 28)
                .add(n4)
                .addContainerGap())
        );
        PanelDatPhongLayout.setVerticalGroup(
            PanelDatPhongLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(PanelDatPhongLayout.createSequentialGroup()
                .add(panelDateChoose22, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 70, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(JSconpane, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 301, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .add(0, 0, 0)
                .add(PanelDatPhongLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(lbl1)
                    .add(lbl3)
                    .add(n1)
                    .add(n3))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(PanelDatPhongLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(lbl2)
                    .add(lbl4)
                    .add(n2)
                    .add(n4))
                .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jTabbeQuanlykhachhang.addTab("\u0110\u1eb7t ph\u00f2ng", PanelDatPhong);

        jPanel8.setBorder(javax.swing.BorderFactory.createTitledBorder("Ch\u1ee9c n\u0103ng t\u00ecm"));
        combOrdertype.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                combOrdertypeItemStateChanged(evt);
            }
        });

        jLabel6.setText("Lo\u1ea1i \u0111\u01a1n h\u00e0ng");

        jButton20.setIcon(new javax.swing.ImageIcon(getClass().getResource("/phs_project/Image/Icon/first_r13_c5.gif")));
        jButton20.setToolTipText("L\u1ecdc theo lo\u1ea1i");
        jButton20.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton20ActionPerformed(evt);
            }
        });

        jLabel34.setText("T\u00ean ng\u01b0\u1eddi \u0111\u1eb7t");

        txtRegName.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyTyped(java.awt.event.KeyEvent evt) {
                txtRegNameKeyTyped(evt);
            }
        });

        jButton28.setIcon(new javax.swing.ImageIcon(getClass().getResource("/phs_project/Image/Icon/first_r14_c19.gif")));
        jButton28.setToolTipText("T\u00ecm ki\u1ebfm");

        org.jdesktop.layout.GroupLayout jPanel8Layout = new org.jdesktop.layout.GroupLayout(jPanel8);
        jPanel8.setLayout(jPanel8Layout);
        jPanel8Layout.setHorizontalGroup(
            jPanel8Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel8Layout.createSequentialGroup()
                .add(jLabel6)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(combOrdertype, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 125, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jButton20, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 30, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jLabel34)
                .add(14, 14, 14)
                .add(txtRegName, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 121, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .add(20, 20, 20)
                .add(jButton28, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 30, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
        );
        jPanel8Layout.setVerticalGroup(
            jPanel8Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel8Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                .add(jLabel6)
                .add(combOrdertype, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .add(jButton20, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 30, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .add(jLabel34)
                .add(txtRegName, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .add(jButton28, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 34, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
        );

        jPanel9.setBorder(javax.swing.BorderFactory.createTitledBorder("Danh s\u00e1ch \u0111\u01a1n h\u00e0ng"));
        tableOrders.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {

            }
        ));
        tableOrders.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                tableOrdersMouseClicked(evt);
            }
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                tableOrdersMouseReleased(evt);
            }
        });

        jScrollPane1.setViewportView(tableOrders);

        jButton22.setIcon(new javax.swing.ImageIcon(getClass().getResource("/phs_project/Image/Icon/first_r5_c14.gif")));
        jButton22.setToolTipText("X\u1ebfp kh\u00e1ch");
        jButton22.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton22ActionPerformed(evt);
            }
        });

        jButton18.setIcon(new javax.swing.ImageIcon(getClass().getResource("/phs_project/Image/Icon/first_r2_c10.gif")));
        jButton18.setToolTipText("Th\u00eam, b\u1edbt ph\u00f2ng");
        jButton18.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton18ActionPerformed(evt);
            }
        });

        jButton25.setIcon(new javax.swing.ImageIcon(getClass().getResource("/phs_project/Image/Icon/first_r6_c20.gif")));
        jButton25.setToolTipText("Xem chi ti\u1ebft");
        jButton25.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton25ActionPerformed(evt);
            }
        });

        jButton21.setIcon(new javax.swing.ImageIcon(getClass().getResource("/phs_project/Image/Icon/first_r1_c17.gif")));
        jButton21.setToolTipText("Tr\u1ea3 ph\u00f2ng");
        jButton21.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton21ActionPerformed(evt);
            }
        });

        jButton17.setIcon(new javax.swing.ImageIcon(getClass().getResource("/phs_project/Image/Icon/first_r1_c2.gif")));
        jButton17.setToolTipText("G\u1ecdi d\u1ecbch v\u1ee5");
        jButton17.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton17ActionPerformed(evt);
            }
        });

        jButton16.setIcon(new javax.swing.ImageIcon(getClass().getResource("/phs_project/Image/Icon/first_r5_c6.gif")));
        jButton16.setToolTipText("H\u1ee7y \u0111\u01a1n h\u00e0ng");
        jButton16.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton16ActionPerformed(evt);
            }
        });

        org.jdesktop.layout.GroupLayout jPanel5Layout = new org.jdesktop.layout.GroupLayout(jPanel5);
        jPanel5.setLayout(jPanel5Layout);
        jPanel5Layout.setHorizontalGroup(
            jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel5Layout.createSequentialGroup()
                .add(jButton22, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 33, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jButton17, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 31, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .add(18, 18, 18)
                .add(jButton18, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 30, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .add(20, 20, 20)
                .add(jButton25, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 33, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .add(17, 17, 17)
                .add(jButton21, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 31, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .add(17, 17, 17)
                .add(jButton16, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 32, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(23, Short.MAX_VALUE))
        );
        jPanel5Layout.setVerticalGroup(
            jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jButton22, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 32, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
            .add(jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                .add(jButton18, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 30, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .add(jButton17, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 32, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
            .add(jPanel5Layout.createSequentialGroup()
                .add(jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jButton21, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 33, Short.MAX_VALUE)
                    .add(jButton25, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 31, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .add(jButton16, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 33, Short.MAX_VALUE)
        );

        org.jdesktop.layout.GroupLayout jPanel9Layout = new org.jdesktop.layout.GroupLayout(jPanel9);
        jPanel9.setLayout(jPanel9Layout);
        jPanel9Layout.setHorizontalGroup(
            jPanel9Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel9Layout.createSequentialGroup()
                .add(jPanel5, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(197, Short.MAX_VALUE))
            .add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 488, Short.MAX_VALUE)
        );
        jPanel9Layout.setVerticalGroup(
            jPanel9Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel9Layout.createSequentialGroup()
                .add(jPanel5, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 33, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 212, Short.MAX_VALUE))
        );

        odtype1.setText("Type1");

        odtype2.setText("Type2");

        odtype3.setText("Type4");

        odtype4.setText("Type5");

        odn1.setText("0");

        odn2.setText("0");

        odn3.setText("0");

        odn4.setText("0");

        org.jdesktop.layout.GroupLayout jPanelQuanlydonhangLayout = new org.jdesktop.layout.GroupLayout(jPanelQuanlydonhang);
        jPanelQuanlydonhang.setLayout(jPanelQuanlydonhangLayout);
        jPanelQuanlydonhangLayout.setHorizontalGroup(
            jPanelQuanlydonhangLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanelQuanlydonhangLayout.createSequentialGroup()
                .add(jPanelQuanlydonhangLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jPanelQuanlydonhangLayout.createSequentialGroup()
                        .addContainerGap()
                        .add(jPanelQuanlydonhangLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(odtype1)
                            .add(odtype2))
                        .add(16, 16, 16)
                        .add(jPanelQuanlydonhangLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(odn1)
                            .add(odn2))
                        .add(28, 28, 28)
                        .add(jPanelQuanlydonhangLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(odtype3)
                            .add(odtype4))
                        .add(17, 17, 17)
                        .add(jPanelQuanlydonhangLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(odn4)
                            .add(odn3)))
                    .add(jPanelQuanlydonhangLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false)
                        .add(org.jdesktop.layout.GroupLayout.LEADING, jPanel9, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .add(org.jdesktop.layout.GroupLayout.LEADING, jPanel8, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanelQuanlydonhangLayout.setVerticalGroup(
            jPanelQuanlydonhangLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanelQuanlydonhangLayout.createSequentialGroup()
                .addContainerGap()
                .add(jPanel8, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .add(15, 15, 15)
                .add(jPanel9, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jPanelQuanlydonhangLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(odtype1)
                    .add(odtype3)
                    .add(odn1)
                    .add(odn3))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 10, Short.MAX_VALUE)
                .add(jPanelQuanlydonhangLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(odtype2)
                    .add(odtype4)
                    .add(odn2)
                    .add(odn4)))
        );
        jTabbeQuanlykhachhang.addTab("Qu\u1ea3n l\u00fd \u0111\u01a1n h\u00e0ng", jPanelQuanlydonhang);

        jPanel10.setBorder(javax.swing.BorderFactory.createTitledBorder("Danh s\u00e1ch kh\u00e1ch h\u00e0ng"));
        tblCustomers.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {

            }
        ));
        tblCustomers.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                tblCustomersMouseClicked(evt);
            }
        });

        jScrollPane2.setViewportView(tblCustomers);

        jLabel9.setText("H\u1ecd v\u00e0 t\u00ean");

        jLabel10.setText("Gi\u1edbi t\u00ednh");

        jLabel11.setText("S\u1ed1 CMT");

        jLabel12.setText("S\u1ed1 h\u1ed9 chi\u1ebfu");

        jLabel13.setText("Ki\u1ec3u");

        buttonGroup1.add(sexMale);
        sexMale.setSelected(true);
        sexMale.setText("Nam");
        sexMale.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
        sexMale.setMargin(new java.awt.Insets(0, 0, 0, 0));

        buttonGroup1.add(sexFemale);
        sexFemale.setText("N\u1eef");
        sexFemale.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
        sexFemale.setMargin(new java.awt.Insets(0, 0, 0, 0));

        jLabel14.setText("Tu\u1ed5i");

        jLabel15.setText("\u0110i\u1ec7n tho\u1ea1i");

        jLabel16.setText("Email");

        jLabel17.setText("Qu\u1ed1c t\u1ecbch");

        jLabel18.setText("\u0110\u1ecba ch\u1ec9");

        jLabel19.setText("Ghi ch\u00fa");

        jButton27.setIcon(new javax.swing.ImageIcon(getClass().getResource("/phs_project/Image/Icon/forth_r10_c2.jpg")));
        jButton27.setToolTipText("B\u1ecf qua");
        jButton27.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton27ActionPerformed(evt);
            }
        });

        jButton24.setIcon(new javax.swing.ImageIcon(getClass().getResource("/phs_project/Image/Icon/forth_r21_c24.jpg")));
        jButton24.setToolTipText("X\u00f3a b\u1ecf");
        jButton24.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton24ActionPerformed(evt);
            }
        });

        jButton23.setIcon(new javax.swing.ImageIcon(getClass().getResource("/phs_project/Image/Icon/forth_r1_c16.jpg")));
        jButton23.setToolTipText("L\u01b0u l\u1ea1i");
        jButton23.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton23ActionPerformed(evt);
            }
        });

        jButton19.setIcon(new javax.swing.ImageIcon(getClass().getResource("/phs_project/Image/Icon/forth_r20_c8.jpg")));
        jButton19.setToolTipText("Th\u00eam m\u1edbi");
        jButton19.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton19ActionPerformed(evt);
            }
        });

        jButton26.setIcon(new javax.swing.ImageIcon(getClass().getResource("/phs_project/Image/Icon/forth_r9_c7.jpg")));
        jButton26.setToolTipText("Hi\u1ec7n t\u1ea5t c\u1ea3");
        jButton26.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton26ActionPerformed(evt);
            }
        });

        typeOfCus.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "T\u1ea5t c\u1ea3", "Kh\u00e1ch \u0111\u1eb7t h\u00e0ng", "Kh\u00e1ch \u0111\u1ebfn \u1edf" }));
        typeOfCus.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                typeOfCusItemStateChanged(evt);
            }
        });

        org.jdesktop.layout.GroupLayout jPanel21Layout = new org.jdesktop.layout.GroupLayout(jPanel21);
        jPanel21.setLayout(jPanel21Layout);
        jPanel21Layout.setHorizontalGroup(
            jPanel21Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel21Layout.createSequentialGroup()
                .add(typeOfCus, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 116, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 58, Short.MAX_VALUE)
                .add(jButton26, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 32, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .add(15, 15, 15)
                .add(jButton19, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 32, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .add(16, 16, 16)
                .add(jButton23, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 30, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .add(17, 17, 17)
                .add(jButton24, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 29, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .add(17, 17, 17)
                .add(jButton27, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 31, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        jPanel21Layout.setVerticalGroup(
            jPanel21Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel21Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                .add(jButton19, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 28, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .add(jButton23, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 27, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .add(jButton24, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 28, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .add(jButton27, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 27, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .add(jButton26, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 28, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .add(typeOfCus, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
        );

        cusReg.setText("Kh\u00e1ch \u0111\u1eb7t h\u00e0ng");

        cusIn.setText("Kh\u00e1ch \u0111\u1ebfn \u1edf");

        cn1.setText("0");

        cn2.setText("0");

        org.jdesktop.layout.GroupLayout jPanel10Layout = new org.jdesktop.layout.GroupLayout(jPanel10);
        jPanel10.setLayout(jPanel10Layout);
        jPanel10Layout.setHorizontalGroup(
            jPanel10Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel10Layout.createSequentialGroup()
                .add(jPanel10Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                    .add(jScrollPane2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 498, Short.MAX_VALUE)
                    .add(jPanel10Layout.createSequentialGroup()
                        .addContainerGap()
                        .add(jPanel10Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(jPanel10Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false)
                                .add(org.jdesktop.layout.GroupLayout.LEADING, jLabel10, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .add(org.jdesktop.layout.GroupLayout.LEADING, jLabel9, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .add(jLabel11)
                            .add(jLabel12)
                            .add(jLabel14)
                            .add(jLabel18)
                            .add(jLabel19))
                        .add(30, 30, 30)
                        .add(jPanel10Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                            .add(org.jdesktop.layout.GroupLayout.LEADING, txtNote, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 403, Short.MAX_VALUE)
                            .add(org.jdesktop.layout.GroupLayout.LEADING, txtAddress, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 403, Short.MAX_VALUE)
                            .add(jPanel10Layout.createSequentialGroup()
                                .add(jPanel10Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                                    .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel10Layout.createSequentialGroup()
                                        .add(sexMale)
                                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                        .add(sexFemale)
                                        .add(101, 101, 101))
                                    .add(jPanel10Layout.createSequentialGroup()
                                        .add(jPanel10Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
                                            .add(jPanel10Layout.createSequentialGroup()
                                                .add(txtFirstname, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 68, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                                .add(txtLastname, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 79, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                                            .add(txtVisaCardNum)
                                            .add(txtAge, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 156, Short.MAX_VALUE)
                                            .add(txtIdcardNumb))
                                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                .add(jPanel10Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                                    .add(jLabel15)
                                    .add(jLabel16, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 35, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                    .add(jLabel17)
                                    .add(jLabel13, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 31, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                                .add(20, 20, 20)
                                .add(jPanel10Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
                                    .add(cbType, 0, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .add(txtPhone)
                                    .add(txtEmail)
                                    .add(txtCountry, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 157, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
                            .add(jPanel21, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
                .add(132, 132, 132))
            .add(jPanel10Layout.createSequentialGroup()
                .add(cusReg)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(cn1)
                .add(114, 114, 114)
                .add(cusIn)
                .add(20, 20, 20)
                .add(cn2)
                .add(252, 252, 252))
        );
        jPanel10Layout.setVerticalGroup(
            jPanel10Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel10Layout.createSequentialGroup()
                .addContainerGap()
                .add(jPanel10Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jPanel10Layout.createSequentialGroup()
                        .add(jPanel10Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(jLabel9)
                            .add(txtFirstname, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(txtLastname, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(jPanel10Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(jLabel10)
                            .add(sexMale)
                            .add(sexFemale))
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(jPanel10Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(jLabel11)
                            .add(txtIdcardNumb, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(jPanel10Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(jLabel12)
                            .add(jPanel10Layout.createSequentialGroup()
                                .add(txtVisaCardNum, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                .add(jPanel10Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                                    .add(jLabel14)
                                    .add(txtAge, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))))
                    .add(jPanel10Layout.createSequentialGroup()
                        .add(jPanel10Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(jLabel13)
                            .add(cbType, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                        .add(27, 27, 27)
                        .add(jPanel10Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(jLabel15)
                            .add(txtPhone, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(jPanel10Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(jLabel16)
                            .add(txtEmail, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(jPanel10Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(jLabel17)
                            .add(txtCountry, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))))
                .add(18, 18, 18)
                .add(jPanel10Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel18)
                    .add(txtAddress, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .add(17, 17, 17)
                .add(jPanel10Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel19)
                    .add(txtNote, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jPanel21, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jScrollPane2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 101, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 12, Short.MAX_VALUE)
                .add(jPanel10Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(cusIn)
                    .add(cusReg)
                    .add(cn1)
                    .add(cn2)))
        );

        org.jdesktop.layout.GroupLayout jPanel7Layout = new org.jdesktop.layout.GroupLayout(jPanel7);
        jPanel7.setLayout(jPanel7Layout);
        jPanel7Layout.setHorizontalGroup(
            jPanel7Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel7Layout.createSequentialGroup()
                .addContainerGap()
                .add(jPanel10, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel7Layout.setVerticalGroup(
            jPanel7Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel7Layout.createSequentialGroup()
                .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .add(jPanel10, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .add(91, 91, 91))
        );
        jTabbeQuanlykhachhang.addTab("Qu\u1ea3n l\u00fd kh\u00e1ch h\u00e0ng", jPanel7);

        jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder("H\u00ecnh th\u1ee9c t\u00ecm ki\u1ebfm"));
        searchConDiG.add(jRadioButtonDay);
        jRadioButtonDay.setText("T\u00ecm theo ng\u00e0y \u0111\u1ebfn \u1edf");
        jRadioButtonDay.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
        jRadioButtonDay.setMargin(new java.awt.Insets(0, 0, 0, 0));
        jRadioButtonDay.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jRadioButtonDayActionPerformed(evt);
            }
        });

        searchConDiG.add(jRadioButtonCusName);
        jRadioButtonCusName.setSelected(true);
        jRadioButtonCusName.setText("T\u00ecm theo t\u00ean kh\u00e1ch");
        jRadioButtonCusName.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
        jRadioButtonCusName.setMargin(new java.awt.Insets(0, 0, 0, 0));
        jRadioButtonCusName.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jRadioButtonCusNameActionPerformed(evt);
            }
        });

        searchConDiG.add(jRadioButtonRoomName);
        jRadioButtonRoomName.setText("T\u00ecm theo ph\u00f2ng");
        jRadioButtonRoomName.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
        jRadioButtonRoomName.setMargin(new java.awt.Insets(0, 0, 0, 0));
        jRadioButtonRoomName.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jRadioButtonRoomNameActionPerformed(evt);
            }
        });

        org.jdesktop.layout.GroupLayout jPanel18Layout = new org.jdesktop.layout.GroupLayout(jPanel18);
        jPanel18.setLayout(jPanel18Layout);
        jPanel18Layout.setHorizontalGroup(
            jPanel18Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel18Layout.createSequentialGroup()
                .add(20, 20, 20)
                .add(jPanel18Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jRadioButtonDay)
                    .add(jRadioButtonRoomName)
                    .add(jRadioButtonCusName))
                .addContainerGap(25, Short.MAX_VALUE))
        );
        jPanel18Layout.setVerticalGroup(
            jPanel18Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel18Layout.createSequentialGroup()
                .addContainerGap()
                .add(jRadioButtonCusName)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jRadioButtonRoomName)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jRadioButtonDay)
                .addContainerGap(21, Short.MAX_VALUE))
        );

        txtInput.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyTyped(java.awt.event.KeyEvent evt) {
                txtInputKeyTyped(evt);
            }
        });

        jButton15.setIcon(new javax.swing.ImageIcon(getClass().getResource("/phs_project/Image/Icon/eight_r7_c3.jpg")));
        jButton15.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton15ActionPerformed(evt);
            }
        });

        org.jdesktop.layout.GroupLayout jPanel19Layout = new org.jdesktop.layout.GroupLayout(jPanel19);
        jPanel19.setLayout(jPanel19Layout);
        jPanel19Layout.setHorizontalGroup(
            jPanel19Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel19Layout.createSequentialGroup()
                .addContainerGap()
                .add(txtInput, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 190, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jButton15, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 28, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(67, Short.MAX_VALUE))
        );
        jPanel19Layout.setVerticalGroup(
            jPanel19Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel19Layout.createSequentialGroup()
                .addContainerGap()
                .add(jPanel19Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(txtInput, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 27, Short.MAX_VALUE)
                    .add(jButton15, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 28, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        org.jdesktop.layout.GroupLayout jPanel20Layout = new org.jdesktop.layout.GroupLayout(jPanel20);
        jPanel20.setLayout(jPanel20Layout);
        jPanel20Layout.setHorizontalGroup(
            jPanel20Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel20Layout.createSequentialGroup()
                .addContainerGap()
                .add(jDateChooserSearch, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 188, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(46, Short.MAX_VALUE))
        );
        jPanel20Layout.setVerticalGroup(
            jPanel20Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel20Layout.createSequentialGroup()
                .add(jDateChooserSearch, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(12, Short.MAX_VALUE))
        );

        org.jdesktop.layout.GroupLayout jPanel4Layout = new org.jdesktop.layout.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel4Layout.createSequentialGroup()
                .add(jPanel18, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jPanel19, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .add(jPanel20, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel4Layout.createSequentialGroup()
                .add(jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jPanel4Layout.createSequentialGroup()
                        .add(jPanel19, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 40, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(jPanel20, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .add(jPanel18, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );

        jPanel17.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)), "K\u1ebft qu\u1ea3 t\u00ecm ki\u1ebfm"));
        tblSearchResult.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {

            }
        ));
        jScrollPane3.setViewportView(tblSearchResult);

        org.jdesktop.layout.GroupLayout jPanel17Layout = new org.jdesktop.layout.GroupLayout(jPanel17);
        jPanel17.setLayout(jPanel17Layout);
        jPanel17Layout.setHorizontalGroup(
            jPanel17Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jScrollPane3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 483, Short.MAX_VALUE)
        );
        jPanel17Layout.setVerticalGroup(
            jPanel17Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jScrollPane3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 233, Short.MAX_VALUE)
        );

        org.jdesktop.layout.GroupLayout panelSearchLayout = new org.jdesktop.layout.GroupLayout(panelSearch);
        panelSearch.setLayout(panelSearchLayout);
        panelSearchLayout.setHorizontalGroup(
            panelSearchLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(panelSearchLayout.createSequentialGroup()
                .addContainerGap()
                .add(panelSearchLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel17, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel4, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
        panelSearchLayout.setVerticalGroup(
            panelSearchLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(panelSearchLayout.createSequentialGroup()
                .addContainerGap()
                .add(jPanel4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jPanel17, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        jTabbeQuanlykhachhang.addTab("T\u00ecm ki\u1ebfm", panelSearch);

        jPanel12.setBorder(javax.swing.BorderFactory.createTitledBorder("\u0110\u01a1n h\u00e0ng"));
        jLabel20.setText("\u0110\u00e3 TT:");

        jLabel21.setText("Ch\u01b0a TT:");

        jLabel22.setText("TT 1 ph\u1ea7n:");

        jLabel23.setText("T\u1ed5ng s\u1ed1:");

        txtOdDtt.setEditable(false);

        txtOdCtt.setEditable(false);

        txtOdTt1p.setEditable(false);

        txtTOD.setEditable(false);

        org.jdesktop.layout.GroupLayout jPanel12Layout = new org.jdesktop.layout.GroupLayout(jPanel12);
        jPanel12.setLayout(jPanel12Layout);
        jPanel12Layout.setHorizontalGroup(
            jPanel12Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel12Layout.createSequentialGroup()
                .addContainerGap()
                .add(jPanel12Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jLabel20)
                    .add(jLabel21)
                    .add(jLabel22)
                    .add(jLabel23))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 24, Short.MAX_VALUE)
                .add(jPanel12Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
                    .add(txtOdDtt, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 22, Short.MAX_VALUE)
                    .add(txtOdCtt)
                    .add(txtOdTt1p)
                    .add(txtTOD))
                .addContainerGap())
        );
        jPanel12Layout.setVerticalGroup(
            jPanel12Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel12Layout.createSequentialGroup()
                .add(jPanel12Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel20)
                    .add(txtOdDtt, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jPanel12Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jLabel21)
                    .add(txtOdCtt, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .add(jPanel12Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jPanel12Layout.createSequentialGroup()
                        .add(9, 9, 9)
                        .add(jLabel22))
                    .add(jPanel12Layout.createSequentialGroup()
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(txtOdTt1p, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .add(jPanel12Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel23)
                    .add(txtTOD, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        jPanel13.setBorder(javax.swing.BorderFactory.createTitledBorder("Kh\u00e1ch h\u00e0ng"));
        jLabel24.setText("\u0110\u1eb7t h\u00e0ng:");

        jLabel25.setText("\u0110\u1ebfn \u1edf:");

        jLabel26.setText("T\u1ed5n s\u1ed1:");

        txtKDH.setEditable(false);

        txtKDO.setEditable(false);

        txtTK.setEditable(false);

        org.jdesktop.layout.GroupLayout jPanel13Layout = new org.jdesktop.layout.GroupLayout(jPanel13);
        jPanel13.setLayout(jPanel13Layout);
        jPanel13Layout.setHorizontalGroup(
            jPanel13Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel13Layout.createSequentialGroup()
                .addContainerGap()
                .add(jPanel13Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jLabel24)
                    .add(jLabel25)
                    .add(jLabel26))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 53, Short.MAX_VALUE)
                .add(jPanel13Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
                    .add(txtTK)
                    .add(txtKDO)
                    .add(txtKDH, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 22, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );
        jPanel13Layout.setVerticalGroup(
            jPanel13Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel13Layout.createSequentialGroup()
                .add(jPanel13Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jPanel13Layout.createSequentialGroup()
                        .add(jLabel24)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(jLabel25)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(jLabel26))
                    .add(jPanel13Layout.createSequentialGroup()
                        .add(txtKDH, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(txtKDO, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(txtTK, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(36, Short.MAX_VALUE))
        );

        jPanel14.setBorder(javax.swing.BorderFactory.createTitledBorder("D\u1ecbch v\u1ee5"));
        jLabel27.setText("Lo\u1ea1i DV:");

        jLabel28.setText("T\u1ed5ng s\u1ed1:");

        jLabel31.setText("DV \u0111ang d\u00f9ng:");

        txtLDv.setEditable(false);

        txtDvHd.setEditable(false);

        txtTDV.setEditable(false);

        org.jdesktop.layout.GroupLayout jPanel14Layout = new org.jdesktop.layout.GroupLayout(jPanel14);
        jPanel14.setLayout(jPanel14Layout);
        jPanel14Layout.setHorizontalGroup(
            jPanel14Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel14Layout.createSequentialGroup()
                .addContainerGap()
                .add(jPanel14Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jLabel27)
                    .add(jLabel31)
                    .add(jLabel28))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .add(jPanel14Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
                    .add(txtTDV)
                    .add(txtDvHd)
                    .add(txtLDv, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 23, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanel14Layout.setVerticalGroup(
            jPanel14Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel14Layout.createSequentialGroup()
                .add(jPanel14Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel27)
                    .add(txtLDv, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .add(15, 15, 15)
                .add(jPanel14Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel31)
                    .add(txtDvHd, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .add(15, 15, 15)
                .add(jPanel14Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel28)
                    .add(txtTDV, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(48, Short.MAX_VALUE))
        );

        jPanel15.setBorder(javax.swing.BorderFactory.createTitledBorder("Ph\u00f2ng"));
        jLabel29.setText("Lo\u1ea1i ph\u00f2ng:");

        jLabel30.setText("T\u1ed5ng s\u1ed1:");

        jLabel32.setText("Ph\u00f2ng \u0111ang \u1edf");

        txtLP.setEditable(false);

        txtPHD.setEditable(false);

        txtTP.setEditable(false);

        jLabel35.setText("Ph\u00f2ng \u0111\u1eb7t tr\u01b0\u1edbc");

        txtFreeRoom.setEditable(false);

        jLabel36.setText("Ph\u00f2ng \u0111\u00e3 \u0111\u1eb7t");

        txtRegRoom.setEditable(false);

        org.jdesktop.layout.GroupLayout jPanel15Layout = new org.jdesktop.layout.GroupLayout(jPanel15);
        jPanel15.setLayout(jPanel15Layout);
        jPanel15Layout.setHorizontalGroup(
            jPanel15Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel15Layout.createSequentialGroup()
                .addContainerGap()
                .add(jPanel15Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jLabel35)
                    .add(jPanel15Layout.createSequentialGroup()
                        .add(jPanel15Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(jLabel32)
                            .add(jLabel36)
                            .add(jLabel30)
                            .add(jLabel29))
                        .add(38, 38, 38)
                        .add(jPanel15Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
                            .add(txtLP)
                            .add(txtTP)
                            .add(org.jdesktop.layout.GroupLayout.TRAILING, txtRegRoom)
                            .add(org.jdesktop.layout.GroupLayout.TRAILING, txtFreeRoom)
                            .add(org.jdesktop.layout.GroupLayout.TRAILING, txtPHD, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 20, Short.MAX_VALUE))))
                .addContainerGap())
        );
        jPanel15Layout.setVerticalGroup(
            jPanel15Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel15Layout.createSequentialGroup()
                .add(jPanel15Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel29)
                    .add(txtLP, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jPanel15Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel35)
                    .add(txtFreeRoom, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jPanel15Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel32)
                    .add(txtPHD, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jPanel15Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel36)
                    .add(txtRegRoom, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .add(11, 11, 11)
                .add(jPanel15Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel30)
                    .add(txtTP, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        jPanel16.setBorder(javax.swing.BorderFactory.createTitledBorder("Chi ti\u1ebft"));
        org.jdesktop.layout.GroupLayout jPanel16Layout = new org.jdesktop.layout.GroupLayout(jPanel16);
        jPanel16.setLayout(jPanel16Layout);
        jPanel16Layout.setHorizontalGroup(
            jPanel16Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 175, Short.MAX_VALUE)
        );
        jPanel16Layout.setVerticalGroup(
            jPanel16Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 276, Short.MAX_VALUE)
        );

        btnXem.setIcon(new javax.swing.ImageIcon(getClass().getResource("/phs_project/Image/Icon/firth_r1_c7.jpg")));
        btnXem.setToolTipText("Ki\u1ec3m tra");
        btnXem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnXemActionPerformed(evt);
            }
        });

        org.jdesktop.layout.GroupLayout jPanel11Layout = new org.jdesktop.layout.GroupLayout(jPanel11);
        jPanel11.setLayout(jPanel11Layout);
        jPanel11Layout.setHorizontalGroup(
            jPanel11Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel11Layout.createSequentialGroup()
                .addContainerGap()
                .add(jPanel11Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jPanel11Layout.createSequentialGroup()
                        .add(jPanel11Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(jPanel12, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .add(jPanel14, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(jPanel11Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(jPanel15, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .add(jPanel13, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(jPanel16, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .add(43, 43, 43))
                    .add(btnXem, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 36, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );
        jPanel11Layout.setVerticalGroup(
            jPanel11Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel11Layout.createSequentialGroup()
                .add(23, 23, 23)
                .add(jPanel11Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel16, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .add(jPanel11Layout.createSequentialGroup()
                        .add(jPanel11Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                            .add(jPanel12, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .add(jPanel13, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(jPanel11Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(jPanel15, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .add(jPanel14, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
                .add(18, 18, 18)
                .add(btnXem, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 35, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .add(73, 73, 73))
        );
        jTabbeQuanlykhachhang.addTab("Th\u1ed1ng k\u00ea", jPanel11);

        org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jTabbeQuanlykhachhang, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 518, Short.MAX_VALUE)
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel1Layout.createSequentialGroup()
                .add(jTabbeQuanlykhachhang, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 443, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(27, Short.MAX_VALUE))
        );
        jSplitPane1.setRightComponent(jPanel1);

        jProgressBar1.setMaximum(10);

        jToolBar1.setFloatable(false);
        jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/phs_project/Image/Icon/trangthaiphong.gif")));
        jButton1.setToolTipText("Qu\u1ea3n l\u00fd ph\u00f2ng");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

        jToolBar1.add(jButton1);

        jButton3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/phs_project/Image/Icon/Datphong.gif")));
        jButton3.setToolTipText("\u0110\u1eb7t ph\u00f2ng");
        jButton3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton3ActionPerformed(evt);
            }
        });

        jToolBar1.add(jButton3);

        jButton4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/phs_project/Image/Icon/quanlydonhang.gif")));
        jButton4.setToolTipText("Qu\u1ea3n l\u00fd \u0111\u01a1n h\u00e0ng");
        jButton4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton4ActionPerformed(evt);
            }
        });

        jToolBar1.add(jButton4);

        jButton5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/phs_project/Image/Icon/quanlykhachhang.gif")));
        jButton5.setToolTipText("Qu\u1ea3n l\u00fd kh\u00e1ch kh\u00e0ng");
        jButton5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton5ActionPerformed(evt);
            }
        });

        jToolBar1.add(jButton5);

        jButton9.setIcon(new javax.swing.ImageIcon(getClass().getResource("/phs_project/Image/Icon/Timkiem.gif")));
        jButton9.setToolTipText("T\u00ecm ki\u1ebfm");
        jButton9.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton9ActionPerformed(evt);
            }
        });

        jToolBar1.add(jButton9);

        jButton6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/phs_project/Image/Icon/thongke.gif")));
        jButton6.setToolTipText("Th\u1ed1ng k\u00ea");
        jButton6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton6ActionPerformed(evt);
            }
        });

        jToolBar1.add(jButton6);

        jSeparator3.setOrientation(javax.swing.SwingConstants.VERTICAL);

        jToolBar2.setFloatable(false);
        jButton13.setIcon(new javax.swing.ImageIcon(getClass().getResource("/phs_project/Image/Icon/gioithieu.gif")));
        jButton13.setToolTipText("Gi\u1edbi thi\u1ec7u");
        jButton13.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton13ActionPerformed(evt);
            }
        });

        jToolBar2.add(jButton13);

        jButton12.setIcon(new javax.swing.ImageIcon(getClass().getResource("/phs_project/Image/Icon/logout.gif")));
        jButton12.setToolTipText("\u0110\u0103ng xu\u1ea5t");
        jButton12.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton12ActionPerformed(evt);
            }
        });

        jToolBar2.add(jButton12);

        jButton14.setIcon(new javax.swing.ImageIcon(getClass().getResource("/phs_project/Image/Icon/thoat.gif")));
        jButton14.setToolTipText("T\u1eaft ch\u01b0\u01a1ng tr\u00ecnh");
        jButton14.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton14ActionPerformed(evt);
            }
        });

        jToolBar2.add(jButton14);

        mnFile.setText("H\u1ec7 th\u1ed1ng");
        mnitBackupDatabase.setEnabled(false);
        mnitBackupDatabase.setLabel("Sao l\u01b0u d\u1eef li\u1ec7u");
        mnitBackupDatabase.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnitBackupDatabaseActionPerformed(evt);
            }
        });

        mnFile.add(mnitBackupDatabase);

        mnitRestoreDatabase.setEnabled(false);
        mnitRestoreDatabase.setLabel("Ph\u1ee5c h\u1ed3i d\u1eef li\u1ec7u");
        mnFile.add(mnitRestoreDatabase);

        mnFile.add(speratoFile);

        mnitLogOut.setText("\u0110\u0103ng xu\u1ea5t");
        mnitLogOut.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnitLogOutActionPerformed(evt);
            }
        });

        mnFile.add(mnitLogOut);

        mnitExit.setMnemonic('T');
        mnitExit.setActionCommand("Exit Application");
        mnitExit.setLabel("Tho\u00e1t \u1ee9ng d\u1ee5ng");
        mnitExit.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnitExitActionPerformed(evt);
            }
        });

        mnFile.add(mnitExit);

        Menu.add(mnFile);

        mnRoom.setText("Ph\u00f2ng");
        mnitRoomTypes.setText("Lo\u1ea1i ph\u00f2ng \u1edf");
        mnitRoomTypes.setEnabled(false);
        mnRoom.add(mnitRoomTypes);

        mnitRoomOperation.setText("C\u00e1c thao t\u00e1c v\u1edbi ph\u00f2ng");
        mnitRoomOperation.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnitRoomOperationActionPerformed(evt);
            }
        });

        mnRoom.add(mnitRoomOperation);

        Menu.add(mnRoom);

        mnServices.setText("D\u1ecbch v\u1ee5");
        mnitServiceTypes.setText("Lo\u1ea1i d\u1ecbch v\u1ee5");
        mnitServiceTypes.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnitServiceTypesActionPerformed(evt);
            }
        });

        mnServices.add(mnitServiceTypes);

        mnitServiceOperation.setText("Thao t\u00e1c v\u1edbi lo\u1ea1i d\u1ecbch v\u1ee5");
        mnitServiceOperation.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnitServiceOperationActionPerformed(evt);
            }
        });

        mnServices.add(mnitServiceOperation);

        Menu.add(mnServices);

        mnReservation.setText("\u0110\u1eb7t ph\u00f2ng");
        mnReservation.setEnabled(false);
        mnReservation.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnReservationActionPerformed(evt);
            }
        });

        mnitBlockDate.setText("Nh\u1eefng ng\u00e0y ng\u1eebng ho\u1ea1t \u0111\u1ed9ng");
        mnReservation.add(mnitBlockDate);

        mnitNewReservation.setText("\u0110\u1eb7t ph\u00f2ng tr\u01b0\u1edbc");
        mnitNewReservation.setActionCommand("New Reservation");
        mnReservation.add(mnitNewReservation);

        mnitEditDeleteReservation.setText("X\u00f3a c\u00e1c \u0111\u1eb7t h\u00e0ng tr\u01b0\u1edbc");
        mnReservation.add(mnitEditDeleteReservation);

        mnReservation.add(jSeparator2);

        mnitStayInfomation.setText("Th\u00f4ng tin v\u1ec1 chi ti\u1ebft v\u1ec1 \u0111\u1eb7t ph\u00f2ng theo bi\u1ec3u \u0111\u1ed3");
        mnitStayInfomation.setEnabled(false);
        mnReservation.add(mnitStayInfomation);

        Menu.add(mnReservation);

        mnGroup.setText("\u0110i theo nh\u00f3m");
        mnGroup.setEnabled(false);
        mnitGroupDatabase.setText("Group Database");
        mnGroup.add(mnitGroupDatabase);

        mnitGroupOperation.setText("Group Operation");
        mnGroup.add(mnitGroupOperation);

        mnGroup.add(jSeparator5);

        mnitCheckInList.setText("CheckIn List");
        mnGroup.add(mnitCheckInList);

        mnitCheckOutList.setText("CheckOut List");
        mnGroup.add(mnitCheckOutList);

        mnitReservationList.setText("Reservation List");
        mnGroup.add(mnitReservationList);

        mnGroup.add(jSeparator7);

        mnitUnGroup.setText("UnGroup");
        mnitUnGroup.setEnabled(false);
        mnGroup.add(mnitUnGroup);

        mnitReGroup.setText("ReGroup");
        mnitReGroup.setEnabled(false);
        mnGroup.add(mnitReGroup);

        Menu.add(mnGroup);

        mnReport.setText("B\u00e1o c\u00e1o");
        mnitReportsOrders.setText("B\u00e1o c\u00e1o \u0111\u01a1n h\u00e0ng");
        mnitReportsOrders.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnitReportsOrdersActionPerformed(evt);
            }
        });

        mnReport.add(mnitReportsOrders);

        mnitReportsRooms.setText("B\u00e1o c\u00e1o ph\u00f2ng");
        mnitReportsRooms.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnitReportsRoomsActionPerformed(evt);
            }
        });

        mnReport.add(mnitReportsRooms);

        Menu.add(mnReport);

        mnOption.setText("T\u00f9y ch\u1ecdn");
        mnitCreateUser.setText("S\u1eeda \u0111\u1ed5i th\u00f4ng tin c\u00e1 nh\u00e2n");
        mnitCreateUser.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnitCreateUserActionPerformed(evt);
            }
        });

        mnOption.add(mnitCreateUser);

        mnChangLook.setText("Thay giao di\u1ec7n");
        mnitWindows.setText("Windows");
        mnitWindows.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnitWindowsActionPerformed(evt);
            }
        });

        mnChangLook.add(mnitWindows);

        mnitDefault.setText("M\u1eb7c \u0111\u1ecbnh");
        mnitDefault.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnitDefaultActionPerformed(evt);
            }
        });

        mnChangLook.add(mnitDefault);

        mnitOffice2003.setText("Office 2003");
        mnitOffice2003.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnitOffice2003ActionPerformed(evt);
            }
        });

        mnChangLook.add(mnitOffice2003);

        mnitOfficeXP.setText("Office Xp");
        mnitOfficeXP.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnitOfficeXPActionPerformed(evt);
            }
        });

        mnChangLook.add(mnitOfficeXP);

        mnitVisualStudio2005.setText("VB.NET");
        mnitVisualStudio2005.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnitVisualStudio2005ActionPerformed(evt);
            }
        });

        mnChangLook.add(mnitVisualStudio2005);

        mnOption.add(mnChangLook);

        mnitUser.setText("Qu\u1ea3n l\u00fd t\u00e0i kho\u1ea3n");
        mnitUser.setEnabled(false);
        mnitUser.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnitUserActionPerformed(evt);
            }
        });

        mnOption.add(mnitUser);

        Menu.add(mnOption);

        mnHelp.setText("H\u01b0\u1edbng d\u1eabn");
        mnitDocument.setText("T\u00e0i li\u1ec7u h\u01b0\u1edbng d\u1eabn");
        mnitDocument.setEnabled(false);
        mnHelp.add(mnitDocument);

        mnitOnlineHelp.setText("H\u1ed7 tr\u1ee3 tr\u1ef1c tuy\u1ebfn");
        mnitOnlineHelp.setEnabled(false);
        mnHelp.add(mnitOnlineHelp);

        mnHelp.add(mnitSeparator1);

        mnitAbout.setText("Gi\u1edbi thi\u1ec7u");
        mnitAbout.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnitAboutActionPerformed(evt);
            }
        });

        mnHelp.add(mnitAbout);

        Menu.add(mnHelp);

        setJMenuBar(Menu);

        org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(layout.createSequentialGroup()
                .add(jToolBar1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .add(19, 19, 19)
                .add(jSeparator3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 14, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .add(15, 15, 15)
                .add(jToolBar2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(308, Short.MAX_VALUE))
            .add(jSplitPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 711, Short.MAX_VALUE)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()
                .addContainerGap()
                .add(jProgressBar1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 701, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(layout.createSequentialGroup()
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(layout.createSequentialGroup()
                        .addContainerGap()
                        .add(jSeparator3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 28, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .add(jToolBar2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 52, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jToolBar1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 53, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jSplitPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 472, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jProgressBar1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(35, Short.MAX_VALUE))
        );
        pack();
        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        java.awt.Dimension dialogSize = getSize();
        setLocation((screenSize.width-dialogSize.width)/2,(screenSize.height-dialogSize.height)/2);
    }// </editor-fold>//GEN-END:initComponents

    private void mnitPrintActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnitPrintActionPerformed
// TODO add your handling code here:
        new purchard(this,true,ODID).setVisible(true);
    }//GEN-LAST:event_mnitPrintActionPerformed

    private void mnitReportsRoomsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnitReportsRoomsActionPerformed
// TODO add your handling code here:
        new RoomReport(this,true).setVisible(true);
    }//GEN-LAST:event_mnitReportsRoomsActionPerformed

    private void mnitReportsOrdersActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnitReportsOrdersActionPerformed
// TODO add your handling code here:
       
        new Report(this,true).setVisible(true);
    }//GEN-LAST:event_mnitReportsOrdersActionPerformed

    private void jRadioButtonDayActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButtonDayActionPerformed
// TODO add your handling code here:
        txtInput.setText("");
    }//GEN-LAST:event_jRadioButtonDayActionPerformed

    private void jRadioButtonRoomNameActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButtonRoomNameActionPerformed
// TODO add your handling code here:
        txtInput.setText("");
    }//GEN-LAST:event_jRadioButtonRoomNameActionPerformed

    private void jRadioButtonCusNameActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButtonCusNameActionPerformed
// TODO add your handling code here:
        txtInput.setText("");
    }//GEN-LAST:event_jRadioButtonCusNameActionPerformed

    private void txtInputKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txtInputKeyTyped
// TODO add your handling code here:
        Search();
    }//GEN-LAST:event_txtInputKeyTyped

    private void jButton15ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton15ActionPerformed
// TODO add your handling code here:
        Search();
    }//GEN-LAST:event_jButton15ActionPerformed

   
    private void jButton13ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton13ActionPerformed
// TODO add your handling code here:
         new AboutUs(this,true).setVisible(true);
    }//GEN-LAST:event_jButton13ActionPerformed

    private void jButton9ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton9ActionPerformed
// TODO add your handling code here:
        jTabbeQuanlykhachhang.setSelectedIndex(4);
    }//GEN-LAST:event_jButton9ActionPerformed

    private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton6ActionPerformed
// TODO add your handling code here:
        jTabbeQuanlykhachhang.setSelectedIndex(5);
    }//GEN-LAST:event_jButton6ActionPerformed

    private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton5ActionPerformed
// TODO add your handling code here:
        jTabbeQuanlykhachhang.setSelectedIndex(3);
    }//GEN-LAST:event_jButton5ActionPerformed

    private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton4ActionPerformed
// TODO add your handling code here:
        jTabbeQuanlykhachhang.setSelectedIndex(2);
    }//GEN-LAST:event_jButton4ActionPerformed

    private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed
// TODO add your handling code here:
         jTabbeQuanlykhachhang.setSelectedIndex(1);
    }//GEN-LAST:event_jButton3ActionPerformed

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
// TODO add your handling code here:
        jTabbeQuanlykhachhang.setSelectedIndex(0);
        
        
    }//GEN-LAST:event_jButton1ActionPerformed

    private void cbbRoomStausItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_cbbRoomStausItemStateChanged
// TODO add your handling code here:
        ViewRoomStatusToday();
    }//GEN-LAST:event_cbbRoomStausItemStateChanged

    private void typeOfCusItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_typeOfCusItemStateChanged
// TODO add your handling code here:
        showCustomers();
    }//GEN-LAST:event_typeOfCusItemStateChanged

    private void jButton12ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton12ActionPerformed
// TODO add your handling code here:
         int result = JOptionPane.showConfirmDialog(this,"Bạn có thực sự muốn đổi người sử dụng không","Cảnh báo",JOptionPane.OK_CANCEL_OPTION);
        if(result == 0){
            this.dispose();
            loginForm.user = "";
            loginForm.server = "";
            new loginForm().setVisible(true);
        }
    }//GEN-LAST:event_jButton12ActionPerformed

    private void jButton14ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton14ActionPerformed
// TODO add your handling code here:
         int result = JOptionPane.showConfirmDialog(this,"Bạn có thực sự muốn thoát khỏi ứng dụng không ?","Cảnh báo",JOptionPane.OK_CANCEL_OPTION);
        if(result == 0){
            System.exit(1);
        }
    }//GEN-LAST:event_jButton14ActionPerformed

    private void mnitPayoutOrdActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnitPayoutOrdActionPerformed
// TODO add your handling code here:
        if (ODID==null){
          JOptionPane.showMessageDialog(this,"Bạn phải chọn một đơn hàng");
            
        }
        else {
            new checkOutAll(this,true,this.ODID).setVisible(true);
        }
    }//GEN-LAST:event_mnitPayoutOrdActionPerformed

    private void mnitDisplayOrdActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnitDisplayOrdActionPerformed
// TODO add your handling code here:
         if (ODID==null){
          JOptionPane.showMessageDialog(this,"Bạn phải chọn một đơn hàng");
            
        }
        else {
            //new checkOutAll(this.ODID).setVisible(true);
             new showOrderDetail(this,true).setVisible(true);
        }
    }//GEN-LAST:event_mnitDisplayOrdActionPerformed

    private void mnitChangeOrdActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnitChangeOrdActionPerformed
// TODO add your handling code here:
        if (ODID==null){
          JOptionPane.showMessageDialog(this,"Bạn phải chọn một đơn hàng");
            
        }
        else {
            new chagerooms(this,true).setVisible(true); // goi dialog change room
        }
        
    }//GEN-LAST:event_mnitChangeOrdActionPerformed

    private void mnitAddSerActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnitAddSerActionPerformed
// TODO add your handling code here:
         if (ODID==null){
          JOptionPane.showMessageDialog(this,"Bạn phải chọn một đơn hàng");
            
        }
        else {
            new addServicestoOrder(this,true).setVisible(true);
            //ODID=null;
        }
    }//GEN-LAST:event_mnitAddSerActionPerformed

    private void mnitAddCusActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnitAddCusActionPerformed
// TODO add your handling code here:
        if (ODID==null)
         {
          JOptionPane.showMessageDialog(this,"Bạn phải chọn một đơn hàng");            
        }
        else 
        {   String checkNum=new publicClass().selectDateToString("select count(roomId) as checkRNum from orderDetail where orderid='"+ODID+"' and getdate() between begindate and enddate","checkRNum");
            if (new Integer(checkNum)==0)
            {
                JOptionPane.showMessageDialog(this,"Đơn hàng này các phòng chưa đến ngày ở ! không thể xếp khách");
            }
            else
            {
                new insertCustomer(this,true,ODID).setVisible(true);
            }
        }
        
    }//GEN-LAST:event_mnitAddCusActionPerformed

    private void tableOrdersMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tableOrdersMouseReleased
// TODO add your handling code here:
        if(evt.isPopupTrigger()){   
            int rowSelect = tableOrders.getSelectedRow();
            if(tableOrders.isRowSelected(rowSelect)){     
                PmenuForOrders.show(evt.getComponent(),evt.getX(),evt.getY());
            }
        }
    }//GEN-LAST:event_tableOrdersMouseReleased

    private void mnitAboutActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnitAboutActionPerformed
// TODO add your handling code here:
        new AboutUs(this,true).setVisible(true);
        
    }//GEN-LAST:event_mnitAboutActionPerformed

    private void mnitLogOutActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnitLogOutActionPerformed
// TODO add your handling code here:
        int result = JOptionPane.showConfirmDialog(this,"Bạn có thực sự muốn đổi người sử dụng không","Cảnh báo",JOptionPane.OK_CANCEL_OPTION);
        if(result == 0){
            this.dispose();
            loginForm.user = "";
            loginForm.server = "";
            new loginForm().setVisible(true);
        }
    }//GEN-LAST:event_mnitLogOutActionPerformed

    private void mnitAddCustomerActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnitAddCustomerActionPerformed
// TODO add your handling code here:
        int rowSelect = tableViewRoomStaus.getSelectedRow();            
        String RName = tableViewRoomStaus.getValueAt(rowSelect,0).toString(); 
        addCustomer(RName);
    }//GEN-LAST:event_mnitAddCustomerActionPerformed

    private void mnitAddServicesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnitAddServicesActionPerformed
// TODO add your handling code here:
        int rowSelect = tableViewRoomStaus.getSelectedRow();            
        String RName = tableViewRoomStaus.getValueAt(rowSelect,0).toString();            
        AddServices(RName);
    }//GEN-LAST:event_mnitAddServicesActionPerformed

    private void mnitChangeRoomActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnitChangeRoomActionPerformed
// TODO add your handling code here:
         int rowSelect = tableViewRoomStaus.getSelectedRow();            
         String RName = tableViewRoomStaus.getValueAt(rowSelect,0).toString(); 
         ChangerRoom(RName);
    }//GEN-LAST:event_mnitChangeRoomActionPerformed

    private void mnitUserActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnitUserActionPerformed
// TODO add your handling code here:
        new CreateUser(this,true).setVisible(true);
    }//GEN-LAST:event_mnitUserActionPerformed

    private void mnitVisualStudio2005ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnitVisualStudio2005ActionPerformed
// TODO add your handling code here:
        ChangeLookAndFeel("org.fife.plaf.VisualStudio2005.VisualStudio2005LookAndFeel");
    }//GEN-LAST:event_mnitVisualStudio2005ActionPerformed

    private void mnitOfficeXPActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnitOfficeXPActionPerformed
// TODO add your handling code here:
       ChangeLookAndFeel("org.fife.plaf.OfficeXP.OfficeXPLookAndFeel");
    }//GEN-LAST:event_mnitOfficeXPActionPerformed

    private void mnitOffice2003ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnitOffice2003ActionPerformed
// TODO add your handling code here:
       ChangeLookAndFeel("org.fife.plaf.Office2003.Office2003LookAndFeel");
    }//GEN-LAST:event_mnitOffice2003ActionPerformed

    private void mnitDefaultActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnitDefaultActionPerformed
// TODO add your handling code here:
      ChangeLookAndFeel("com.incors.plaf.kunststoff.KunststoffLookAndFeel");   
    }//GEN-LAST:event_mnitDefaultActionPerformed

    private void mnitWindowsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnitWindowsActionPerformed
// TODO add your handling code here:
        ChangeLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
        
    }//GEN-LAST:event_mnitWindowsActionPerformed

    private void txtRegNameKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txtRegNameKeyTyped
// TODO add your handling code here:
        showOrderByCus(combOrdertype.getSelectedItem().toString());
        
    }//GEN-LAST:event_txtRegNameKeyTyped

    private void jButton27ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton27ActionPerformed
// TODO add your handling code here:
        UnFillAllFeild();
    }//GEN-LAST:event_jButton27ActionPerformed

    private void jButton19ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton19ActionPerformed
// TODO add your handling code here:
         if (CusId !=null){
            JOptionPane.showMessageDialog(this,"Khách đã có trong đơn hàng !");
        }
        else
        {
           if (txtFirstname.getText().equals(""))
           {
               JOptionPane.showMessageDialog(this,"Bạn phải nhập Họ đệm !");
           
           }  
           else
           {
               if (txtLastname.getText().equals(""))
               {
                   JOptionPane.showMessageDialog(this,"Bạn phải nhập Tên!");

               }  
               else
               {   String CountCus=new publicClass().selectDateToString("select count(customerId) as CC from customers where upper(firstName) =upper(N'"+txtFirstname.getText()+"') and upper(lastName) =upper(N'"+txtLastname.getText()+"')","CC");
                   if (new Integer(CountCus)>0)
                   {
                       int cf = JOptionPane.showConfirmDialog(this,"Tên khách đã có ! bạn vẫn muốn tiếp tục ?","Cảnh báo !",0);
                       if (cf ==0)
                       {
                           InsertNewCustomer();       
                       }
                       else
                       {
                           JOptionPane.showMessageDialog(this,"Bạn nên kiểm tra lại xem có phải bạn đang nhập trùng ?");
                       }
                   }
                   else
                   {
                      InsertNewCustomer();  
                   }
                     
               }
           }           
        }
    }//GEN-LAST:event_jButton19ActionPerformed

    private void jButton23ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton23ActionPerformed
// TODO add your handling code here:
         if (CusId ==null){
            JOptionPane.showMessageDialog(this,"Bạn phải chọn một khách hàng để sửa !");
        }
        else
        { 
             if (txtFirstname.getText().equals("")){
                 JOptionPane.showMessageDialog(this,"Bạn không được để trống Họ đệm !");
             
             }
             else
             {
                 if (txtLastname.getText().equals(""))
                 {
                 JOptionPane.showMessageDialog(this,"Bạn không được để trống Tên !");
                 }
                 else
                 {
                    UpdateCustomer(CusId);
                    UnFillAllFeild();
                 }
             }
             
        }
    }//GEN-LAST:event_jButton23ActionPerformed

    private void jButton25ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton25ActionPerformed
// TODO add your handling code here:
         if (ODID==null){
          JOptionPane.showMessageDialog(this,"Bạn phải chọn một đơn hàng");
            
        }
        else {
            //new checkOutAll(this.ODID).setVisible(true);
             new showOrderDetail(this,true).setVisible(true);
        }
    }//GEN-LAST:event_jButton25ActionPerformed

    private void jTabbeQuanlykhachhangMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTabbeQuanlykhachhangMouseClicked
// TODO add your handling code here:
        ViewRoom(); 
        showordes(Loai);
        showCustomers();
        ViewRoomStatusToday(); 
        viewreport();
        UnFillAllFeild();
        CountRoomShow();
         CountOrderShow();
         CountCustomerType();
        
    }//GEN-LAST:event_jTabbeQuanlykhachhangMouseClicked

    private void btnXemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnXemActionPerformed
// TODO add your handling code here:
        viewreport();
    }//GEN-LAST:event_btnXemActionPerformed

    
    
    private void jButton26ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton26ActionPerformed
// TODO add your handling code here:
        showCustomers();
    }//GEN-LAST:event_jButton26ActionPerformed
   
    private void jButton24ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton24ActionPerformed
// TODO add your handling code here:
        if (CusId ==null){
            JOptionPane.showMessageDialog(this,"Bạn phải chọn một khách hàng để xóa");
        }
        else
        {   int cf=JOptionPane.showConfirmDialog(this,"Bạn thực sự muốn xóa tất cả thông tin về "+CusTomerName+" hay không ?","Cảnh báo",0);
            if (cf==0){
            new publicClass().SQLRUN("clearorderofcus '"+CusId+"'");
            new publicClass().addItemToTable(tblCustomers,"select * from customersview");
            new publicClass().hiddencol(tblCustomers,0);
            UnFillAllFeild();
            }
        }
    }//GEN-LAST:event_jButton24ActionPerformed

    private void tblCustomersMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tblCustomersMouseClicked
// TODO add your handling code here:
      CusId= new publicClass().SelectedRowToString(tblCustomers,0);
      CusTomerName= new publicClass().SelectedRowToString(tblCustomers,1);
      FillAllFeild();
    }//GEN-LAST:event_tblCustomersMouseClicked

    private void jButton21ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton21ActionPerformed
// TODO add your handling code here:
        if (ODID==null){
          JOptionPane.showMessageDialog(this,"Bạn phải chọn một đơn hàng");
            
        }
        else {
            new checkOutAll(this,true,this.ODID).setVisible(true);
        }
    }//GEN-LAST:event_jButton21ActionPerformed

    private void mnitRoomOperationActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnitRoomOperationActionPerformed
// TODO add your handling code here:
        new AddRooms(this,true).setVisible(true);
    }//GEN-LAST:event_mnitRoomOperationActionPerformed

    private void mnitCheckOutActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnitCheckOutActionPerformed
// TODO add your handling code here:
                int rowSelect = tableViewRoomStaus.getSelectedRow();            
                String RName = tableViewRoomStaus.getValueAt(rowSelect,0).toString();  
                CheckOut(RName); 
    }//GEN-LAST:event_mnitCheckOutActionPerformed

    private void mnitInfoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnitInfoActionPerformed
// TODO add your handling code here:
            int rowSelect = tableViewRoomStaus.getSelectedRow();            
                String RName = tableViewRoomStaus.getValueAt(rowSelect,0).toString();    
                infoOrder(RName);                
    }//GEN-LAST:event_mnitInfoActionPerformed

    private void tableViewRoomStausMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tableViewRoomStausMouseReleased
// TODO add your handling code here:
        if(evt.isPopupTrigger()){   
            int rowSelect = tableViewRoomStaus.getSelectedRow();
            if(tableViewRoomStaus.isRowSelected(rowSelect)){     
                Pmenu.show(evt.getComponent(),evt.getX(),evt.getY());
            }
        }
    }//GEN-LAST:event_tableViewRoomStausMouseReleased

    private void jButton22ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton22ActionPerformed
// TODO add your handling code here:
         if (ODID==null)
         {
          JOptionPane.showMessageDialog(this,"Bạn phải chọn một đơn hàng");            
        }
        else 
        {            
             new insertCustomer(this,true,ODID).setVisible(true);
        }
    }//GEN-LAST:event_jButton22ActionPerformed

    private void tableViewRoomStausMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tableViewRoomStausMouseClicked
// TODO add your handling code here:
        if(evt.getClickCount()== 2){
           // showOrderOnclick ();
            
        }
    }//GEN-LAST:event_tableViewRoomStausMouseClicked

    private void dateChooseEndPropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_dateChooseEndPropertyChange
// TODO add your handling code here:
        String ngayd = new UserFormat().getFormat(dateChooseBegin.getDate(),"ngay");
        endDate = new UserFormat().getFormat(dateChooseEnd.getDate(),"ngay");
        int i = endDate.compareToIgnoreCase(ngayd);
        if(i >= 0){
            endDate = endDate + " " + new UserFormat().getFormat(new Date(),"gio");
            try{
                dateChooseEnd.setDate(new SimpleDateFormat("MM/dd/yy HH:mm:ss").parse(endDate));                 
            }
            catch(ParseException e){
                e.printStackTrace();
            }
        }
        else{
            JOptionPane.showMessageDialog(this,"Ngày cuối phải lớn hơn ngày đến");
            try{
                dateChooseEnd.setDate(new SimpleDateFormat("MM/dd/yy HH:mm:ss").parse(CongNgay(beginDate))); 
                endDate = new UserFormat().getFormat(dateChooseEnd.getDate(),"ngaygio");
            }
            catch(ParseException e){
                e.printStackTrace();
            }
        }  
        //ViewRoom();
    }//GEN-LAST:event_dateChooseEndPropertyChange

    private void dateChooseBeginPropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_dateChooseBeginPropertyChange
// TODO add your handling code here:                                                      
            beginDate = new UserFormat().getFormat(dateChooseBegin.getDate(),"ngay");
            String today = new UserFormat().getFormat(new Date(),"ngay");
            int i = beginDate.compareToIgnoreCase(today);
            if(i >=0){                
                try{
                    beginDate = beginDate + " " + new UserFormat().getFormat(new Date(),"gio");
                    dateChooseBegin.setDate(new SimpleDateFormat("MM/dd/yy HH:mm:ss").parse(beginDate));                    
                   
                    String ngaydi = CongNgay(beginDate);
                    //JOptionPane.showMessageDialog(this,ngaydi);
                    dateChooseEnd.setDate(new SimpleDateFormat("MM/dd/yy HH:mm:ss").parse(ngaydi));                    
                    endDate = new UserFormat().getFormat(dateChooseEnd.getDate(),"ngaygio");
                }
                catch(ParseException e){
                    e.printStackTrace();
                }
                    
            }
            else{
                JOptionPane.showMessageDialog(this,"Ngày đến không được nhỏ hơn ngày hiện tại");
                try {
                    dateChooseBegin.setDate(new SimpleDateFormat("MM/dd/yy HH:mm:ss").parse(new UserFormat().getFormat(new Date(),"ngaygio")));                    
                    beginDate = new UserFormat().getFormat(dateChooseBegin.getDate(),"ngaygio");                    
                }catch (ParseException ex) {
                    ex.printStackTrace();
                }                     
            }                        
    }//GEN-LAST:event_dateChooseBeginPropertyChange
    private String CongNgay(String ngay){        
        int ngaymoi = Integer.parseInt(ngay.substring(3,5)) + 1;
        String thang = beginDate.substring(0,2);
        String conlai = beginDate.substring(6);                    
        String ngaydi = thang +"/"+ ngaymoi+"/"+conlai;
        return ngaydi;
    }
    private void jcalendar1PropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_jcalendar1PropertyChange
// TODO add your handling code here:
          if(evt.getPropertyName().equals("calendar")){                
                calendar = (Calendar) evt.getNewValue();
		txtDateField.setText(df.format(calendar.getTime()));                                 
                jcalendar1.setCalendar(calendar);                                                
                //dateChoose = df1.format(calendar.getTime());                
                String today = new UserFormat().getFormat(new Date(),"ngay");
                dateChoose = new UserFormat().getFormat(calendar.getTime(),"ngay");
                int i = dateChoose.compareToIgnoreCase(today);
                if(i == 0){
                    dateChoose = dateChoose +" " + new UserFormat().getFormat(new Date(),"gio");
                }                                
                //JOptionPane.showMessageDialog(this,dateChoose);
                ViewRoomStatusToday();                
          }        
    }//GEN-LAST:event_jcalendar1PropertyChange

    private void jButton18ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton18ActionPerformed
// TODO add your handling code here:
        if (ODID==null){
          JOptionPane.showMessageDialog(this,"Bạn phải chọn một đơn hàng");
            
        }
        else {
            new chagerooms(this,true).setVisible(true); // goi dialog change room
        }
        
    }//GEN-LAST:event_jButton18ActionPerformed

    private void jButton20ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton20ActionPerformed
// TODO add your handling code here:
        showordes(Loai); 
        CountOrderShow();
    }//GEN-LAST:event_jButton20ActionPerformed

    private void SQLRUN (String SQLTEXT)
     {
       try{
            Connection conn = new connectDatabase().getConnection();
            Statement stm = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
            stm.execute(SQLTEXT);
            conn.close();
            stm.close();
            System.out.println(SQLTEXT);
        }
        catch(Exception e){
            e.printStackTrace();
        }
    }
    private void jButton16ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton16ActionPerformed
// TODO add your handling code here:
        
         if (ODID==null){
          JOptionPane.showMessageDialog(this,"Bạn phải chọn một đơn hàng");
            
        }
        else {
            int isdelete = JOptionPane.showConfirmDialog(this,"Bạn thực sự muốn xóa đơn hàng của "+Cusname+" hay không ?","Cảnh báo",0);
            System.out.println(isdelete);
            if (isdelete==0) {
            SQLRUN ("execute clearOrders '"+ODID+"'"); // goi ham xoa het thong tin ve orders
            //SQLRUN ("Delete orders where orderId = '"+ODID+"'");  
            showordes(Loai); 
            ODID= null;
            
            }
            //if (isdelete==1) {}
            //JOptionPane.showMessageDialog(this,"Bạn đã xóa thành công ");
        }
        
    }//GEN-LAST:event_jButton16ActionPerformed

    private void combOrdertypeItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_combOrdertypeItemStateChanged
// TODO add your handling code here:
        showordes(Loai); 
        
    }//GEN-LAST:event_combOrdertypeItemStateChanged

    private void tableOrdersMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tableOrdersMouseClicked
// TODO add your handling code here:
         int  row;
        row = tableOrders.getSelectedRow();
        ODID=tableOrders.getValueAt(row,0).toString();
        int OrderStaus = new Integer(tableOrders.getValueAt(row,1).toString());
        OrderID = new Integer((String) tableOrders.getValueAt(row,0));
        System.out.println(tableOrders.getValueAt(row,0));
        Cusname=tableOrders.getValueAt(row,2).toString();
        hiddenPopup(OrderStaus);
        hiddenButton(OrderID);
    }//GEN-LAST:event_tableOrdersMouseClicked
    
    private void hiddenButton(int OrderID){
        int status = 0;
        String sql = "";
        sql = sql + "select status from orders where orderID ='" + OrderID + "'";
        System.out.println(sql);
        Connection conn = new connectDatabase().getConnection();
        try{
            Statement st = conn.createStatement();
            ResultSet rs = st.executeQuery(sql);
            while(rs.next()){
                status = rs.getInt(1);
            }
        st.close();
        conn.close();
        }
        catch(SQLException se){
            System.out.println(se);
        }
        if(status == 3){
            //jButton19.setEnabled(false);
            jButton22.setEnabled(false);
            jButton22.setEnabled(false);
            jButton18.setEnabled(false);
            jButton17.setEnabled(false);
        }
        else{
            //jButton19.setEnabled(true);
            jButton22.setEnabled(true);
            jButton22.setEnabled(true);
            jButton18.setEnabled(true);
            jButton17.setEnabled(true);
        }
     }        
    private void jButton17ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton17ActionPerformed
// TODO add your handling code here:
        if (ODID==null){
          JOptionPane.showMessageDialog(this,"Bạn phải chọn một đơn hàng");
            
        }
        else {
            new addServicestoOrder(this,true).setVisible(true);
            //ODID=null;
        }
    }//GEN-LAST:event_jButton17ActionPerformed
   

    
   
    private void btntimphongActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btntimphongActionPerformed
// TODO add your handling code here:        
        ViewRoom();    
        CountRoomShow();
    }//GEN-LAST:event_btntimphongActionPerformed

    private void cbbRoomTypeItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_cbbRoomTypeItemStateChanged
// TODO add your handling code here:
        if(cbbRoomType.getSelectedIndex()!=-1){
            ViewRoom();
        }
    }//GEN-LAST:event_cbbRoomTypeItemStateChanged

    private void btnCreaOrderActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCreaOrderActionPerformed
     
// TODO add your handling code here:
        vt = new Vector();
           int ro = table.getSelectedRow();
           if(ro == -1){
           JOptionPane.showMessageDialog(this,"Bạn phải chọn ít nhất một phòng!");
            } // if huynh
            else{
                for(int i=0; i<getData.RowCount;i++) {
                    if(table.getValueAt(i,0).equals(true)) {
                        vt.addElement(table.getValueAt(i,1));
                        
                    }else{
                        
                        vt.removeElement(table.getValueAt(i,1));
                    }
                    
                    
                }
             
                
                if   (vt.size()==0 ) {
                    JOptionPane.showMessageDialog(this,"Bạn phải chọn ít nhất một phòng");
                }
                else {
                 createOrderNew taodonhang =new  createOrderNew(this,true,beginDate,endDate,vt);
                 taodonhang.setVisible(true);
                }
            } // else cua phan chua chon
      
    }//GEN-LAST:event_btnCreaOrderActionPerformed
    
    private void mnitCreateUserActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnitCreateUserActionPerformed
// TODO add your handling code here:
        UserInfo uinfo = new UserInfo(this,true);
        uinfo.setVisible(true);
    }//GEN-LAST:event_mnitCreateUserActionPerformed

    private void mnitServiceOperationActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnitServiceOperationActionPerformed
// TODO add your handling code here:
        addForm objService = new addForm(this,true);
        objService.setVisible(true);
    }//GEN-LAST:event_mnitServiceOperationActionPerformed

    private void mnitServiceTypesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnitServiceTypesActionPerformed
// TODO add your handling code here:
        addServiceType objServiceType = new addServiceType(this,true);
        objServiceType.setVisible(true);        
    }//GEN-LAST:event_mnitServiceTypesActionPerformed

    private void mnReservationActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnReservationActionPerformed
// TODO add your handling code here:
    }//GEN-LAST:event_mnReservationActionPerformed

    private void mnitExitActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnitExitActionPerformed
// TODO add your handling code here:        
        int result = JOptionPane.showConfirmDialog(this,"Bạn có thực sự muốn thoát khỏi ứng dụng không ?","Cảnh báo",JOptionPane.OK_CANCEL_OPTION);
        if(result == 0){
            System.exit(1);
        }
    }//GEN-LAST:event_mnitExitActionPerformed

    private void mnitBackupDatabaseActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnitBackupDatabaseActionPerformed
// TODO add your handling code here:
    }//GEN-LAST:event_mnitBackupDatabaseActionPerformed
    
    /**
     * @param args the command line arguments
     */
    
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new hotelForm().setVisible(true);
            }
        });
    }
    public void loginMenu(){ 
        mnitNew = new javax.swing.JMenuItem(); 
        mnitNew.setText("Dành riêng cho Admin");        
        mnOption.add(mnitNew);
    }
    private void setLich(){
         vnLocale = new Locale("vi");
         jcalendar1.setLocale(new Locale("vi"));  
         dateChooseBegin.setLocale(new Locale("vi"));  
         dateChooseEnd.setLocale(new Locale("vi"));
         df1 = new SimpleDateFormat("MM/dd/yy HH:mm:ss");
         df = DateFormat.getDateInstance(DateFormat.LONG,vnLocale); 
        // Get today's date
         date = new Date();           
         txtDateField.setText(df.format(date));  
         dateChoose = new UserFormat().getFormat(date,"ngaygio");
         /* 
         try {
                dateChooseBegin.setDate(new SimpleDateFormat("MM/dd/yy HH:mm:ss").parse(new UserFormat().getFormat(date,"ngaygio")));
            } catch (ParseException ex) {
                ex.printStackTrace();
            }
          */
         ViewRoomStatusToday();
    }

    private void RoomTypeCombobox(){
        String sql = "select name from roomstype";
        cbbRoomType.addItem("Hiện tất cả các loại phòng");
        new sqlDatabase().addDataCombobox(sql,cbbRoomType);
    }
    /*
    private void OrderStatusCombobox(){
        String sql = "SELECT status_detail FROM order_status";
        cbbOrderStatus.addItem("Hiện tất cả");
        new sqlDatabase().addDataCombobox(sql,cbbOrderStatus);
    }
    */ 
    public void ViewRoom(){
        String select = cbbRoomType.getSelectedItem().toString();
        String[] title = {"Chọn","Mã Phòng","Tên phòng","Loại phòng","Giá phòng"};
	String space = " ";
	try{
                if(con == null){
                        con = new connectDatabase().getConnection();   
                }  
                String sql = "select RoomTypeId from roomstype ";
                        sql = sql + "WHERE name = N'"+select+"'";
             
                sttm = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
                if(select.equals("Hiện tất cả các loại phòng")){
                        selectRoomTypeId = "0";
                }
                else{
                        ResultSet rs = sttm.executeQuery(sql);
                        while(rs.next()){
                                selectRoomTypeId = rs.getString(1);
                        }
                }             
        }
        catch(Exception e){
            e.printStackTrace();
        }
	TableDataRoom tableDataRoom = new TableDataRoom(beginDate,endDate,selectRoomTypeId,title);
	table.setModel(tableDataRoom);		
	table.setRowHeight(17);
        new publicClass().hiddencol(table,1);
        new publicClass().hiddencol(table,3);
    }

 
    
 //-------------------------HuynhNt Code--------------------------------//
    private void Infomation(){
        lblUser.setText(new publicClass().selectDateToString("select username from users where userName='"+loginForm.user+"'","username"));
        lblRight.setText(loginForm.usertypename);        
        lblImage.setIcon(new javax.swing.ImageIcon(getClass().getResource(new publicClass().selectDateToString("select image from users where userName='"+loginForm.user+"'","image"))));        
        lblImage.setText("");
    }
    
    private void ViewRoomStatusToday(){
        
         String sql="";
        
        
        String TatusRoom =cbbRoomStaus.getSelectedItem().toString();
         if (TatusRoom.equals("Tất cả các loại"))
         {
            sql =  "select roomnumb as 'Tên phòng', N'Phòng đang bận' as 'Trạng thái',roomid as 'Mã phòng' from rooms  where roomid in (select roomid from TrangThai " ; 
            sql = sql + "where (roomstatusId = 5 or roomstatusId = 6)  and '"+dateChoose+"' between beginDate and endDate) ";

            sql = sql + "UNION select roomnumb, N'Phòng đang đặt' as 'Trạng thái',roomid from rooms where roomid in(select roomid from TrangThai ";
            sql = sql + "where roomstatusId = 8 and '"+dateChoose+"' between beginDate and endDate) ";

            sql = sql + "UNION select roomnumb, N'Phòng đang trống' as 'Trạng thái',roomid from rooms where roomid not in(select roomid from TrangThai ";
            sql = sql + "where (roomstatusId = 5 or roomstatusId = 6 or roomstatusId = 8 or roomstatusId = 7 ) and '"+dateChoose+"' between beginDate and endDate)" ;
            new sqlDatabase().addDataTable(sql,tableViewRoomStaus,3);  
            new publicClass().hiddencol(tableViewRoomStaus,2);
         }
         
        if (TatusRoom.equals("Phòng đang rỗi"))
        {
            sql = "select roomnumb as 'Tên phòng', N'Phòng đang trống' as 'Trạng thái',roomid from rooms where roomid not in(select roomid from TrangThai ";
            sql = sql + "where (roomstatusId = 5 or roomstatusId = 6 or roomstatusId = 8 or roomstatusId = 7 ) and '"+dateChoose+"' between beginDate and endDate)" ;
            new sqlDatabase().addDataTable(sql,tableViewRoomStaus,3);  
            new publicClass().hiddencol(tableViewRoomStaus,2);
        }
         if (TatusRoom.equals("Phòng đang đặt"))
         {
            sql = "select roomnumb as 'Tên phòng', N'Phòng đang đặt' as 'Trạng thái',roomid from rooms where roomid in(select roomid from TrangThai ";
            sql = sql + "where roomstatusId = 8 and '"+dateChoose+"' between beginDate and endDate) ";
            new sqlDatabase().addDataTable(sql,tableViewRoomStaus,3);  
            new publicClass().hiddencol(tableViewRoomStaus,2);
        }
        
        if (TatusRoom.equals("Phòng đang bận"))
        {
             
            sql =  "select roomnumb as 'Tên phòng', N'Phòng đang bận' as 'Trạng thái',roomid as 'Mã phòng' from rooms  where roomid in (select roomid from TrangThai " ; 
            sql = sql + "where (roomstatusId = 5 or roomstatusId = 6)  and '"+dateChoose+"' between beginDate and endDate) ";
            new sqlDatabase().addDataTable(sql,tableViewRoomStaus,3);  
            new publicClass().hiddencol(tableViewRoomStaus,2);
        }
        
       //String sql = "{call ViewRoomStatusToday('"+dateChoose+"')}";
        
       
    }
    public void ChangeLK()
    {
        SwingUtilities.updateComponentTreeUI(this);
    }
    private void CheckOut(String roomName){        
        String sql = "select orid from busyrooms where roomNumb= N'"+roomName+"' and '"+dateChoose+"' between bd and ed";
        //String sql = "select roomId from rooms where roomNumb = N'Phong 101'";
        ODID = new sqlDatabase().converToString(sql,1);
        int result = new sqlDatabase().getCount(sql);
        if(result!=0){
            new checkOutAll(this,true,ODID).setVisible(true);
        }
        else{
            JOptionPane.showMessageDialog(this,"Phòng đang đang rỗi nên kông thể thanh toán");
        }    
    }
    private void infoOrder(String roomName){
        String sql = "select orderId from TrangThai where roomNumb= N'"+roomName+"' and '"+dateChoose+"' between beginDate and endDate";        
        //ODID = new sqlDatabase().ConverSql(sql,1);        
        ODID = new  sqlDatabase().converToString(sql,1);
        int result = new sqlDatabase().getCount(sql);
        if(result!=0){
            new showOrderDetail(this,true).setVisible(true); 
        }
        else{
            JOptionPane.showMessageDialog(this,"Phòng này hiện tại đang rỗi");
        }
    }
    //
    
    private void ChangerRoom(String roomName){        
        String sql = "select orid from busyrooms where roomNumb= N'"+roomName+"' and '"+dateChoose+"' between bd and ed";
        //String sql = "select roomId from rooms where roomNumb = N'Phong 101'";
        ODID = new sqlDatabase().converToString(sql,1);
        int result = new sqlDatabase().getCount(sql);
        if(result!=0){
            new chagerooms(this,true).setVisible(true);
        }
        else{
            JOptionPane.showMessageDialog(this,"Phòng đang đang rỗi nên không thể chuyển");
        }    
    }
        //
     private void AddServices(String roomName){
        String sql = "select orderId from TrangThai where roomNumb= N'"+roomName+"' and '"+dateChoose+"' between beginDate and endDate";        
        //ODID = new sqlDatabase().ConverSql(sql,1);        
        ODID = new  sqlDatabase().converToString(sql,1);
        int result = new sqlDatabase().getCount(sql);
        if(result!=0){
            new addServicestoOrder(this,true).setVisible(true);
        }
        else{
            JOptionPane.showMessageDialog(this,"Phòng đang đang rỗi nên kông thể gọi dịch vụ!");
        }   
    }
    //
     private void addCustomer(String roomName){
        String sql = "select orderId from TrangThai where roomNumb= N'"+roomName+"' and '"+dateChoose+"' between beginDate and endDate";        
        //ODID = new sqlDatabase().ConverSql(sql,1);        
        ODID = new  sqlDatabase().converToString(sql,1);
        int result = new sqlDatabase().getCount(sql);
        if(result!=0){
            new insertCustomer(this,true,ODID).setVisible(true);
        }
        else{
            JOptionPane.showMessageDialog(this,"Phòng đang rỗi nên không thể thêm người vào được!");
        }   
    }
     
 //-------------------------End Huynh Nt Code--------------------------------//
     
//------------------------------------Tuanp Code/////////////
    ////Tab Thong ke///
      private void Search()
    {
    {   if (jRadioButtonRoomName.isSelected())
            
        new publicClass().addItemToTable(tblSearchResult,"select [Tên phòng],[Tên khách],begindate as [Ngày đến ở] from vSearchRooms where [Tên phòng] like '%"+txtInput.getText()+"%'");
    }
       if (jRadioButtonCusName.isSelected())
       {   
        new publicClass().addItemToTable(tblSearchResult,"select [Tên khách],[Tên phòng],begindate as [Ngày đến ở] from vSearchRooms where [Tên khách] like '%"+txtInput.getText()+"%'");
       }
        if (jRadioButtonDay.isSelected())
        {
         new publicClass().addItemToTable(tblSearchResult,"select begindate as [Ngày đến ở],[Tên khách],[Tên phòng] from vSearchRooms where convert(int,convert(datetime ,convert (nvarchar, DATEPART(month,begindate))+'/'+convert (nvarchar,DATEPART(day,begindate))+'/'+convert(nvarchar,DATEPART(year,begindate))) -'"+new UserFormat().getFormat(jDateChooserSearch.getDate(),"ngay")+"')=0 ");
        }
    }
     
     private void NumbofRoomShow()
     {
        lbl1.setText(new publicClass().selectDateToString("select name from roomstype where roomtypeid=1","name"));
         lbl2.setText(new publicClass().selectDateToString("select name from roomstype where roomtypeid=2","name"));
          lbl3.setText(new publicClass().selectDateToString("select name from roomstype where roomtypeid=3","name"));
           lbl4.setText(new publicClass().selectDateToString("select name from roomstype where roomtypeid=4","name"));
           
           odtype1.setText(new publicClass().selectDateToString("select status_detail as Name from order_Status where statusId=1","name"));
           odtype2.setText(new publicClass().selectDateToString("select status_detail as Name from order_Status where statusId=2","name"));
           odtype3.setText(new publicClass().selectDateToString("select status_detail as Name from order_Status where statusId=3","name"));
           odtype4.setText(new publicClass().selectDateToString("select status_detail as Name from order_Status where statusId=4","name"));
           
     }
     private void CountRoomShow()
     {
         n1.setText(new publicClass().selectDateToString("CountRoomType 1,'"+new UserFormat().getFormat(dateChooseBegin.getDate(),"ngaygio")+"','"+new UserFormat().getFormat(dateChooseEnd.getDate(),"ngaygio")+"'","NumbOfRoomType"));
         n2.setText(new publicClass().selectDateToString("CountRoomType 2,'"+new UserFormat().getFormat(dateChooseBegin.getDate(),"ngaygio")+"','"+new UserFormat().getFormat(dateChooseEnd.getDate(),"ngaygio")+"'","NumbOfRoomType"));
         n3.setText(new publicClass().selectDateToString("CountRoomType 3,'"+new UserFormat().getFormat(dateChooseBegin.getDate(),"ngaygio")+"','"+new UserFormat().getFormat(dateChooseEnd.getDate(),"ngaygio")+"'","NumbOfRoomType"));
         n4.setText(new publicClass().selectDateToString("CountRoomType 4,'"+new UserFormat().getFormat(dateChooseBegin.getDate(),"ngaygio")+"','"+new UserFormat().getFormat(dateChooseEnd.getDate(),"ngaygio")+"'","NumbOfRoomType"));
     }
      private void CountOrderShow()
      {
          odn1.setText(new publicClass().selectDateToString("select count(orderId) as CountOD from orders where status =1","CountOD"));
          odn2.setText(new publicClass().selectDateToString("select count(orderId) as CountOD from orders where status =2","CountOD"));
          odn3.setText(new publicClass().selectDateToString("select count(orderId) as CountOD from orders where status =3","CountOD"));
          odn4.setText(new publicClass().selectDateToString("select count(orderId) as CountOD from orders where status =4","CountOD"));
      }
      private void CountCustomerType()
      {
          cn1.setText(new publicClass().selectDateToString("select count (*) as Demkhachdathang from customersview where customerId in (select customerid from orders)","Demkhachdathang"));
          cn2.setText(new publicClass().selectDateToString("select count (*) as Demkhachdeno from customersview where customerId in (select customerid from roomcurent_detail)","Demkhachdeno"));
      }
     private void hiddenPopup(int orderStatus)
    {
        if (orderStatus==3) 
        {
            mnitAddCus.setVisible(false);
            mnitAddSer.setVisible(false);
            mnitChangeOrd.setVisible(false);
            mnitPrint.setVisible(true);
        }
        else
        {
            mnitAddCus.setVisible(true);
            mnitAddSer.setVisible(true);
            mnitChangeOrd.setVisible(true);
            mnitPrint.setVisible(false);
        }
    }
    private void viewreport() {
         new publicClass().addDataToTextField("select count(orderId) as OTT from orders where status=3","OTT",txtOdDtt);
         new publicClass().addDataToTextField("select count(orderId) as OCT from orders where status=5","OCT",txtOdCtt);
         new publicClass().addDataToTextField("select count(orderId) as TT1p from orders where status=4","TT1p",txtOdTt1p);
         new publicClass().addDataToTextField("select count(orderId) as TOD from orders ","TOD",txtTOD);
         
         new publicClass().addDataToTextField("select count(TypeName) as LDV from ServicesType","LDV",txtLDv);
         new publicClass().addDataToTextField("select count(servicesId) TDV from services","TDV",txtTDV);
         
         new publicClass().addDataToTextField("select count (customerId) as KDH from orders ","KDH",txtKDH);
         new publicClass().addDataToTextField("select count(customerId) KDO from roomcurent_detail","KDO",txtKDO);
         new publicClass().addDataToTextField("select count (customerId) TK from customers","TK",txtTK);
         
         new publicClass().addDataToTextField("select count(name) LP from roomstype","LP",txtLP);
         new publicClass().addDataToTextField("select count (roomid) as TP from rooms","TP",txtTP);
         
         new publicClass().addDataToTextField("select count (servicesId) as txtDvHd from servicesdetail","txtDvHd",txtDvHd);
         new publicClass().addDataToTextField("select count (roomId) as txtPHD from roomcurent_detail","txtPHD",txtPHD);
         new publicClass().addDataToTextField("select count ( DISTINCT roomId) as regRoom from orderdetail ","regRoom",txtRegRoom);
         new publicClass().addDataToTextField("select count(roomId) -(select  count (DISTINCT roomId) from orderdetail) as CountFreeRoom from rooms","CountFreeRoom",txtFreeRoom);
         
         
         
    }
    ////End Tab Thong ke///
    /////Tab Quan ly don hang ////
    private void showordes(String loai) {
        if (combOrdertype.getSelectedItem().toString()=="Hiện tất cả các loại") {
            loai="all";
            String sqlshoworder=  "select * from orderjointypejoincustomer where [Trạng thái] <>'"+loai+"'";
            new sqlDatabase().addDataTable(sqlshoworder,tableOrders);
            new publicClass().hiddencol(tableOrders,0);
            new publicClass().hiddencol(tableOrders,1);
            
        }
        else {
            loai =combOrdertype.getSelectedItem().toString();
            String sqlshoworder=  "select * from orderjointypejoincustomer where [Trạng thái]=N'"+loai+"'";
            new sqlDatabase().addDataTable(sqlshoworder,tableOrders);
            new publicClass().hiddencol(tableOrders,0);
            new publicClass().hiddencol(tableOrders,1);
        }
        
      
       //new sqlDatabase().addDataTable(sqlshoworder,tableOrders);
              //ystem.out.print(dateChoose);
    }
     private void showOrderByCus(String loai)
     {
         
       if (combOrdertype.getSelectedItem().toString()=="Hiện tất cả các loại") {
            loai="all";
            String sqlshoworder=  "select * from orderjointypejoincustomer where [Trạng thái] <>'"+loai+"' and [Người đặt] like N'%"+txtRegName.getText()+"%'";
            new sqlDatabase().addDataTable(sqlshoworder,tableOrders);
            new publicClass().hiddencol(tableOrders,0);
            new publicClass().hiddencol(tableOrders,1);
        }
        else {
            loai =combOrdertype.getSelectedItem().toString();
            String sqlshoworder=  "select * from orderjointypejoincustomer where [Trạng thái]=N'"+loai+"' and [Người đặt] like N'%"+txtRegName.getText()+"%'";
            new sqlDatabase().addDataTable(sqlshoworder,tableOrders);
            new publicClass().hiddencol(tableOrders,0);
            new publicClass().hiddencol(tableOrders,1);
        }
       
       }        
      
     private void showordestype(){
         String sqlshowordertype = "select status_detail from order_status";
        combOrdertype.addItem("Hiện tất cả các loại");
        new sqlDatabase().addDataCombobox(sqlshowordertype,combOrdertype);
        
    }
     
     ////End Tab Quan ly don hang ////
    /////Tab Quan ly khách hang ////
     private void InsertNewCustomer() {
        
        String gioi ="";
        String cusType ="";
        cusType = new publicClass().selectDateToString("select customerTypeId from customerstype where name  =N'"+cbType.getSelectedItem().toString()+"'","customerTypeId");
        if (sexMale.isSelected()){gioi="Nam";
        }
        if (sexFemale.isSelected()){gioi="Nu";
        }
        
        String sql= "insert into customers (firstname,lastname,type,idCardNumb,visaCardNumb,sex,age,address,phone,email,country,detail)" +
                " values (N'"+txtFirstname.getText()+"',N'"+txtLastname.getText()+"','"+cusType+"','"+txtIdcardNumb.getText()+"',N'"+txtVisaCardNum.getText()+"','"+gioi+"','"+txtAge.getText()+"',N'"+txtAddress.getText()+"','"+
                txtPhone.getText()+"','"+txtEmail.getText()+"',N'"+txtCountry.getText()+"',N'"+txtNote.getText()+"')" ;
       // JOptionPane.showMessageDialog(this,sql);
        SQLRUN(sql);
       UnFillAllFeild();
       showCustomers();
        
        
    }
    private void showCustomers()
    { 
        String Sql="" ;  
        if (typeOfCus.getSelectedItem().toString().equals("Tất cả"))
        {
            Sql="select * from customersview";
        }
        if (typeOfCus.getSelectedItem().toString().equals("Khách đặt hàng"))
        {
            Sql="select * from customersview where customerId in (select customerid from orders)";
        }
        if (typeOfCus.getSelectedItem().toString().equals("Khách đến ở"))
        {
            Sql="select * from customersview where customerId in (select customerid from roomcurent_detail)";
        }
        new publicClass().addItemToTable(tblCustomers,Sql);
        new publicClass().hiddencol(tblCustomers,0);
        
    }
     private void showCustomers(String FirstName, String LastName)
    {
        new publicClass().addItemToTable(tblCustomers,"select * from customersview where [Họ tên] like '%"+FirstName+" "+LastName+"%'");
        new publicClass().hiddencol(tblCustomers,0);
    
    }
    private void FillAllFeild(){
        // Connection con = null ;
        String sql1 ="select * from customers where customerid= '"+CusId+"'" ;
        String sql2 ="select firstname,lastname,idCardNumb,visaCardNumb,age,address,phone,email,country,detail from customers where customerid= '"+CusId+"'" ;
        
        if(con == null){
            con = new connectDatabase().getConnection();
        }
        try{
            
            Statement sttm1 = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
            ResultSet rs1 = sttm1.executeQuery(sql2);
            while (rs1.next()){
                //customerId.setText(rs1.getString("customerId"));
                txtFirstname.setText(rs1.getString("firstName"));
                txtLastname.setText(rs1.getString("lastName"));                
                txtIdcardNumb.setText(rs1.getString("idCardNumb"));
                txtVisaCardNum.setText(rs1.getString("visaCardNumb"));       
                txtAge.setText(rs1.getString("age"));
                txtAddress.setText(rs1.getString("address"));
                txtPhone.setText(rs1.getString("phone"));
                txtEmail.setText(rs1.getString("email"));
                txtCountry.setText(rs1.getString("country"));
                txtNote.setText(rs1.getString("detail"));               
           
           }
            sttm1.close();
            rs1.close();
            Statement sttm2 = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
            ResultSet rs2 = sttm2.executeQuery(sql1);
            while(rs2.next()){
                // dua du lieu vao cac truong
               
                cbType.removeAllItems();
               new publicClass().addItemTooCombobox(cbType,"select name from customerstype where customerTypeId='"+rs2.getString("type")+"'","");
               new publicClass().addItemTooCombobox(cbType,"select name from customerstype where customerTypeId <>'"+rs2.getString("type")+"'","");
                
                if (rs2.getString("sex").equals("Nam")){
                    System.out.println(rs2.getString("sex"));
                    sexMale.setSelected(true);                    
                }
                if (rs2.getString("sex").equals("Nu")){
                    System.out.println(rs2.getString("sex"));
                    sexFemale.setSelected(true);                    
                }              
                            // hoan tat dua du lieu vao cac truong
            }          
            sttm2.close();
           rs2.close();
        } catch(Exception e){
            e.printStackTrace();
        }
    }  
     private void UpdateCustomer(String cusId){
       
            String gioi ="";
            String cusType ="";
            cusType =new publicClass().selectDateToString("select customerTypeId from customerstype where name  =N'"+cbType.getSelectedItem().toString()+"'","customerTypeId");
            if (sexMale.isSelected()){gioi="Nam";
            }
            if (sexFemale.isSelected()){gioi="Nu";
            }
            
            String sqlupdate ="update customers set firstname=N'"+txtFirstname.getText()+"',lastname=N'"+txtLastname.getText()+"', type='"+cusType+"',idCardNumb='"+txtIdcardNumb.getText()+"', visaCardNumb=N'"+
                    txtVisaCardNum.getText()+"',sex='"+gioi+"',age='"+txtAge.getText()+"',address=N'"+txtAddress.getText()+"',phone='"+txtPhone.getText()+
                    "',email='"+txtEmail.getText()+"',country=N'"+txtCountry.getText()+"',detail=N'"+txtNote.getText()+"' where customerid='"+cusId+"'";
            SQLRUN(sqlupdate);
            //JOptionPane.showMessageDialog(this,sqlupdate);
            showCustomers();
      
        
    }
    private void UnFillAllFeild()
    {
        txtFirstname.setText("");
        txtLastname.setText(""); 
        sexMale.setSelected(true);
        txtIdcardNumb.setText(" ");
        txtVisaCardNum.setText(" ");       
        txtAge.setText(" ");
        cbType.removeAllItems();
        new publicClass().addItemTooCombobox(cbType,"select name from customerstype ","");
        txtAddress.setText(" ");
        txtPhone.setText(" ");
        txtEmail.setText(" ");
        txtCountry.setText(" ");
        txtNote.setText(" ");
        CusId=null;
        
    }
    
    //////ket thuc tab quan ly khach hang.//////
    //// thay doi giao dien
    private void ChangeLookAndFeel(String type)
    {
        try{
            UIManager.setLookAndFeel(type);
            SwingUtilities.updateComponentTreeUI(this);
           // pack();
           
        } catch (Exception e) {
            JOptionPane.showMessageDialog(this,"Đang nâng cấp !");
            
            //System.err.println("Can't set look & feel:" + e);
        }
    }
    //------------------------------------ End Tuanp Code///////////
    //Tuanp Variables declaration
    String Cusname;
    String CusTomerName;
   // private String SelectedCusId;
    //End Tuanp Variables declaration
    
    public static String ODID;
    private String CusId;
    private String Loai;
    protected String selectRoomTypeId;
    private Connection con;
    private Statement sttm;
    private Locale vnLocale;
    private DateFormat df,df2;
    private Date date;
    private String dateChoose;
    private Format df1;
    private Calendar calendar;        
    private javax.swing.JMenuItem mnitNew;
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JScrollPane JSconpane;
    private javax.swing.JMenuBar Menu;
    private javax.swing.JPanel PanelDatPhong;
    private javax.swing.JPopupMenu Pmenu;
    private javax.swing.JPopupMenu PmenuForOrders;
    private javax.swing.JButton btnCreaOrder;
    private javax.swing.JButton btnXem;
    private javax.swing.JButton btntimphong;
    private javax.swing.ButtonGroup buttonGroup1;
    private javax.swing.JComboBox cbType;
    private javax.swing.JComboBox cbbRoomStaus;
    private javax.swing.JComboBox cbbRoomType;
    private javax.swing.JLabel cn1;
    private javax.swing.JLabel cn2;
    private javax.swing.JComboBox combOrdertype;
    private javax.swing.JLabel cusIn;
    private javax.swing.JLabel cusReg;
    private com.toedter.calendar.JDateChooser dateChooseBegin;
    private com.toedter.calendar.JDateChooser dateChooseEnd;
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton12;
    private javax.swing.JButton jButton13;
    private javax.swing.JButton jButton14;
    private javax.swing.JButton jButton15;
    private javax.swing.JButton jButton16;
    private javax.swing.JButton jButton17;
    private javax.swing.JButton jButton18;
    private javax.swing.JButton jButton19;
    private javax.swing.JButton jButton2;
    private javax.swing.JButton jButton20;
    private javax.swing.JButton jButton21;
    private javax.swing.JButton jButton22;
    private javax.swing.JButton jButton23;
    private javax.swing.JButton jButton24;
    private javax.swing.JButton jButton25;
    private javax.swing.JButton jButton26;
    private javax.swing.JButton jButton27;
    private javax.swing.JButton jButton28;
    private javax.swing.JButton jButton3;
    private javax.swing.JButton jButton4;
    private javax.swing.JButton jButton5;
    private javax.swing.JButton jButton6;
    private javax.swing.JButton jButton9;
    private com.toedter.calendar.JDateChooser jDateChooserSearch;
    private javax.swing.JDialog jDialog1;
    private javax.swing.JDialog jDialog2;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel19;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel20;
    private javax.swing.JLabel jLabel21;
    private javax.swing.JLabel jLabel22;
    private javax.swing.JLabel jLabel23;
    private javax.swing.JLabel jLabel24;
    private javax.swing.JLabel jLabel25;
    private javax.swing.JLabel jLabel26;
    private javax.swing.JLabel jLabel27;
    private javax.swing.JLabel jLabel28;
    private javax.swing.JLabel jLabel29;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel30;
    private javax.swing.JLabel jLabel31;
    private javax.swing.JLabel jLabel32;
    private javax.swing.JLabel jLabel33;
    private javax.swing.JLabel jLabel34;
    private javax.swing.JLabel jLabel35;
    private javax.swing.JLabel jLabel36;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel10;
    private javax.swing.JPanel jPanel11;
    private javax.swing.JPanel jPanel12;
    private javax.swing.JPanel jPanel13;
    private javax.swing.JPanel jPanel14;
    private javax.swing.JPanel jPanel15;
    private javax.swing.JPanel jPanel16;
    private javax.swing.JPanel jPanel17;
    private javax.swing.JPanel jPanel18;
    private javax.swing.JPanel jPanel19;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel20;
    private javax.swing.JPanel jPanel21;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JPanel jPanel6;
    private javax.swing.JPanel jPanel7;
    private javax.swing.JPanel jPanel8;
    private javax.swing.JPanel jPanel9;
    private javax.swing.JPanel jPanelQuanlydonhang;
    private javax.swing.JProgressBar jProgressBar1;
    private javax.swing.JRadioButton jRadioButtonCusName;
    private javax.swing.JRadioButton jRadioButtonDay;
    private javax.swing.JRadioButton jRadioButtonRoomName;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JSeparator jSeparator2;
    private javax.swing.JSeparator jSeparator3;
    private javax.swing.JSeparator jSeparator4;
    private javax.swing.JSeparator jSeparator5;
    private javax.swing.JSeparator jSeparator7;
    private javax.swing.JSplitPane jSplitPane1;
    private javax.swing.JSplitPane jSplitPane2;
    private javax.swing.JTabbedPane jTabbeQuanlykhachhang;
    private javax.swing.JToolBar jToolBar1;
    private javax.swing.JToolBar jToolBar2;
    private com.toedter.calendar.JCalendar jcalendar1;
    private javax.swing.JScrollPane jscrool;
    private javax.swing.JLabel lbl1;
    private javax.swing.JLabel lbl2;
    private javax.swing.JLabel lbl3;
    private javax.swing.JLabel lbl4;
    private javax.swing.JLabel lblImage;
    private javax.swing.JLabel lblRight;
    private javax.swing.JLabel lblUser;
    private javax.swing.JMenu mnChangLook;
    private javax.swing.JMenu mnFile;
    private javax.swing.JMenu mnGroup;
    private javax.swing.JMenu mnHelp;
    private javax.swing.JMenu mnOption;
    private javax.swing.JMenu mnReport;
    private javax.swing.JMenu mnReservation;
    private javax.swing.JMenu mnRoom;
    private javax.swing.JMenu mnServices;
    private javax.swing.JMenuItem mnitAbout;
    private javax.swing.JMenuItem mnitAddCus;
    private javax.swing.JMenuItem mnitAddCustomer;
    private javax.swing.JMenuItem mnitAddSer;
    private javax.swing.JMenuItem mnitAddServices;
    private javax.swing.JMenuItem mnitBackupDatabase;
    private javax.swing.JMenuItem mnitBlockDate;
    private javax.swing.JMenuItem mnitChangeOrd;
    private javax.swing.JMenuItem mnitChangeRoom;
    private javax.swing.JMenuItem mnitCheckInList;
    private javax.swing.JMenuItem mnitCheckOut;
    private javax.swing.JMenuItem mnitCheckOutList;
    private javax.swing.JMenuItem mnitCreateUser;
    private javax.swing.JMenuItem mnitDefault;
    private javax.swing.JMenuItem mnitDisplayOrd;
    private javax.swing.JMenuItem mnitDocument;
    private javax.swing.JMenuItem mnitEditDeleteReservation;
    private javax.swing.JMenuItem mnitExit;
    private javax.swing.JMenuItem mnitGroupDatabase;
    private javax.swing.JMenuItem mnitGroupOperation;
    private javax.swing.JMenuItem mnitInfo;
    private javax.swing.JMenuItem mnitLogOut;
    private javax.swing.JMenuItem mnitNewReservation;
    private javax.swing.JMenuItem mnitOffice2003;
    private javax.swing.JMenuItem mnitOfficeXP;
    private javax.swing.JMenuItem mnitOnlineHelp;
    private javax.swing.JMenuItem mnitPayoutOrd;
    private javax.swing.JMenuItem mnitPrint;
    private javax.swing.JMenuItem mnitReGroup;
    private javax.swing.JMenuItem mnitReportsOrders;
    private javax.swing.JMenuItem mnitReportsRooms;
    private javax.swing.JMenuItem mnitReservationList;
    private javax.swing.JMenuItem mnitRestoreDatabase;
    private javax.swing.JMenuItem mnitRoomOperation;
    private javax.swing.JMenuItem mnitRoomTypes;
    private javax.swing.JSeparator mnitSeparator1;
    private javax.swing.JMenuItem mnitServiceOperation;
    private javax.swing.JMenuItem mnitServiceTypes;
    private javax.swing.JMenuItem mnitStayInfomation;
    private javax.swing.JMenuItem mnitUnGroup;
    public javax.swing.JMenuItem mnitUser;
    private javax.swing.JMenuItem mnitVisualStudio2005;
    private javax.swing.JMenuItem mnitWindows;
    private javax.swing.JLabel n1;
    private javax.swing.JLabel n2;
    private javax.swing.JLabel n3;
    private javax.swing.JLabel n4;
    private javax.swing.JLabel odn1;
    private javax.swing.JLabel odn2;
    private javax.swing.JLabel odn3;
    private javax.swing.JLabel odn4;
    private javax.swing.JLabel odtype1;
    private javax.swing.JLabel odtype2;
    private javax.swing.JLabel odtype3;
    private javax.swing.JLabel odtype4;
    private javax.swing.JPanel panelDateChoose22;
    private javax.swing.JPanel panelRoomManage;
    private javax.swing.JPanel panelSearch;
    private javax.swing.JPanel pn1;
    private javax.swing.ButtonGroup searchConDiG;
    private javax.swing.JRadioButton sexFemale;
    private javax.swing.JRadioButton sexMale;
    private javax.swing.JSeparator speratoFile;
    private javax.swing.JTable table;
    private javax.swing.JTable tableOrders;
    private javax.swing.JTable tableViewRoomStaus;
    private javax.swing.JTable tblCustomers;
    private javax.swing.JTable tblSearchResult;
    private javax.swing.JTextField txtAddress;
    private javax.swing.JTextField txtAge;
    private javax.swing.JTextField txtCountry;
    private javax.swing.JTextField txtDateField;
    private javax.swing.JTextField txtDvHd;
    private javax.swing.JTextField txtEmail;
    private javax.swing.JTextField txtFirstname;
    private javax.swing.JTextField txtFreeRoom;
    private javax.swing.JTextField txtIdcardNumb;
    private javax.swing.JTextField txtInput;
    private javax.swing.JTextField txtKDH;
    private javax.swing.JTextField txtKDO;
    private javax.swing.JTextField txtLDv;
    private javax.swing.JTextField txtLP;
    private javax.swing.JTextField txtLastname;
    private javax.swing.JTextField txtNote;
    private javax.swing.JTextField txtOdCtt;
    private javax.swing.JTextField txtOdDtt;
    private javax.swing.JTextField txtOdTt1p;
    private javax.swing.JTextField txtPHD;
    private javax.swing.JTextField txtPhone;
    private javax.swing.JTextField txtRegName;
    private javax.swing.JTextField txtRegRoom;
    private javax.swing.JTextField txtTDV;
    private javax.swing.JTextField txtTK;
    private javax.swing.JTextField txtTOD;
    private javax.swing.JTextField txtTP;
    private javax.swing.JTextField txtVisaCardNum;
    private javax.swing.JComboBox typeOfCus;
    // End of variables declaration//GEN-END:variables
    
}
